Skip to content

Commit acdd102

Browse files
[gardening] Fix recently introduced typos.
1 parent 04b7201 commit acdd102

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/SILOptimizer/Analysis/EscapeAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ bool EscapeAnalysis::buildConnectionGraphForDestructor(
11561156
}
11571157
// If Ty is a an optional, its deallocation is equivalent to the deallocation
11581158
// of its payload.
1159-
// TODO: Generalize it. Destructor of an aggrgate type is equivalent to calling
1159+
// TODO: Generalize it. Destructor of an aggregate type is equivalent to calling
11601160
// destructors for its components.
11611161
while (Ty.getSwiftRValueType()->getAnyOptionalObjectType())
11621162
Ty = M.Types.getLoweredType(Ty.getSwiftRValueType()
@@ -1312,7 +1312,7 @@ void EscapeAnalysis::analyzeInstruction(SILInstruction *I,
13121312

13131313
if (isa<StrongReleaseInst>(I) || isa<ReleaseValueInst>(I)) {
13141314
// Treat the release instruction as if it is the invocation
1315-
// of a deinit funciton.
1315+
// of a deinit function.
13161316
if (RecursionDepth < MaxRecursionDepth) {
13171317
// Check if the destructor is known.
13181318
auto OpV = cast<RefCountingInst>(I)->getOperand(0);

test/SILOptimizer/escape_analysis.sil

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ bb0(%0 : $X):
13381338
return %1 : $()
13391339
}
13401340

1341-
// Escape analysis should analyze the implcit destructor call which may
1341+
// Escape analysis should analyze the implicit destructor call which may
13421342
// happen due to strong_release and figure out that the object will not
13431343
// globally escape.
13441344
// CHECK-LABEL: CG of check_non_escaping_implicit_destructor_invocation_via_strong_release
@@ -1353,7 +1353,7 @@ bb0:
13531353
return %3 : $()
13541354
}
13551355

1356-
// Escape analysis should analyze the implcit destructor call which may
1356+
// Escape analysis should analyze the implicit destructor call which may
13571357
// happen due to strong_release and figure out that the object will not
13581358
// globally escape.
13591359
// CHECK-LABEL: CG of check_non_escaping_implicit_destructor_invocation_via_release_value
@@ -1368,7 +1368,7 @@ bb0:
13681368
return %3 : $()
13691369
}
13701370

1371-
// Escape analysis should analyze the implcit destructor call which may
1371+
// Escape analysis should analyze the implicit destructor call which may
13721372
// happen due to strong_release and figure out that the object will
13731373
// globally escape.
13741374
// CHECK-LABEL: CG of check_escaping_implicit_destructor_invocation_via_strong_release
@@ -1385,7 +1385,7 @@ bb0:
13851385
return %3 : $()
13861386
}
13871387

1388-
// Escape analysis should analyze the implcit destructor call which may
1388+
// Escape analysis should analyze the implicit destructor call which may
13891389
// happen due to strong_release and figure out that the object will
13901390
// globally escape.
13911391
// CHECK-LABEL: CG of check_escaping_implicit_destructor_invocation_via_release_value

0 commit comments

Comments
 (0)