Skip to content

Commit ca86883

Browse files
committed
Merge pull request #1403 from practicalswift/typo-fixes-20160223
[gardening] Fix recently introduced typos: "a empty" → "an empty", "abstruction" → "abstraction"
2 parents 0a87b5a + f3b0e49 commit ca86883

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/ClangImporter/ImportType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ DefaultArgumentKind ClangImporter::Implementation::inferDefaultArgument(
18701870
}
18711871
}
18721872

1873-
// Don't introduce a empty options default arguments for setters.
1873+
// Don't introduce an empty options default arguments for setters.
18741874
if (isFirstParameter && camel_case::getFirstWord(baseName.str()) == "set")
18751875
return DefaultArgumentKind::None;
18761876

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,13 @@ SILFunction *swift::getExistingSpecialization(SILModule &M,
390390
return Specialization;
391391
}
392392

393-
/// Create a re-abstruction thunk for a partial_apply.
393+
/// Create a re-abstraction thunk for a partial_apply.
394394
/// This is needed in case we converted some parameters/results of the
395395
/// specialized function from indirect to direct but the result function of the
396396
/// partial_apply still needs them as indirect.
397397
/// We create a thunk which converts the direct parameters/results back to
398398
/// indirect ones.
399-
static SILFunction *createReabstructionThunk(const ReabstractionInfo &ReInfo,
399+
static SILFunction *createReabstractionThunk(const ReabstractionInfo &ReInfo,
400400
PartialApplyInst *OrigPAI,
401401
SILFunction *SpecializedFunc) {
402402
SILFunction *OrigF = OrigPAI->getCalleeFunction();
@@ -591,7 +591,7 @@ void swift::trySpecializeApplyOfGeneric(ApplySite Apply,
591591
// original function with indirect parameters/results.
592592
auto *PAI = cast<PartialApplyInst>(Apply.getInstruction());
593593
SILBuilderWithScope Builder(PAI);
594-
SILFunction *Thunk = createReabstructionThunk(ReInfo, PAI, SpecializedF);
594+
SILFunction *Thunk = createReabstractionThunk(ReInfo, PAI, SpecializedF);
595595
NewFunctions.push_back(Thunk);
596596
auto *FRI = Builder.createFunctionRef(PAI->getLoc(), Thunk);
597597
SmallVector<SILValue, 4> Arguments;

test/SILOptimizer/specialize_partial_apply.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct MyError : ErrorType {
1414
}
1515
}
1616

17-
// We need a reabstruction thunk to convert from direct args/result to indirect
17+
// We need a reabstraction thunk to convert from direct args/result to indirect
1818
// args/result, which is expected in the returned closure.
1919

2020
// CHECK-LABEL: sil shared [noinline] @_TTSg5Si___TF4test16generic_get_funcurFTxSb_Fxx : $@convention(thin) (Int, Bool) -> @owned @callee_owned (@in Int) -> @out Int {
@@ -85,7 +85,7 @@ func testit3(b: Bool) -> Int {
8585

8686
// The same three test cases again, but with throwing functions.
8787

88-
// We need a reabstruction thunk to convert from direct args/result to indirect
88+
// We need a reabstraction thunk to convert from direct args/result to indirect
8989
// args/result, which is expected in the returned closure.
9090

9191
// CHECK-LABEL: sil shared [noinline] @_TTSg5Si___TF4test25generic_get_func_throwingurFSbFzxx : $@convention(thin) (Bool) -> @owned @callee_owned (@in Int) -> (@out Int, @error ErrorType) {

0 commit comments

Comments
 (0)