File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/SILOptimizer/Analysis Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1156,7 +1156,7 @@ bool EscapeAnalysis::buildConnectionGraphForDestructor(
1156
1156
}
1157
1157
// If Ty is a an optional, its deallocation is equivalent to the deallocation
1158
1158
// 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
1160
1160
// destructors for its components.
1161
1161
while (Ty.getSwiftRValueType ()->getAnyOptionalObjectType ())
1162
1162
Ty = M.Types .getLoweredType (Ty.getSwiftRValueType ()
@@ -1312,7 +1312,7 @@ void EscapeAnalysis::analyzeInstruction(SILInstruction *I,
1312
1312
1313
1313
if (isa<StrongReleaseInst>(I) || isa<ReleaseValueInst>(I)) {
1314
1314
// Treat the release instruction as if it is the invocation
1315
- // of a deinit funciton .
1315
+ // of a deinit function .
1316
1316
if (RecursionDepth < MaxRecursionDepth) {
1317
1317
// Check if the destructor is known.
1318
1318
auto OpV = cast<RefCountingInst>(I)->getOperand (0 );
Original file line number Diff line number Diff line change @@ -1338,7 +1338,7 @@ bb0(%0 : $X):
1338
1338
return %1 : $()
1339
1339
}
1340
1340
1341
- // Escape analysis should analyze the implcit destructor call which may
1341
+ // Escape analysis should analyze the implicit destructor call which may
1342
1342
// happen due to strong_release and figure out that the object will not
1343
1343
// globally escape.
1344
1344
// CHECK-LABEL: CG of check_non_escaping_implicit_destructor_invocation_via_strong_release
@@ -1353,7 +1353,7 @@ bb0:
1353
1353
return %3 : $()
1354
1354
}
1355
1355
1356
- // Escape analysis should analyze the implcit destructor call which may
1356
+ // Escape analysis should analyze the implicit destructor call which may
1357
1357
// happen due to strong_release and figure out that the object will not
1358
1358
// globally escape.
1359
1359
// CHECK-LABEL: CG of check_non_escaping_implicit_destructor_invocation_via_release_value
@@ -1368,7 +1368,7 @@ bb0:
1368
1368
return %3 : $()
1369
1369
}
1370
1370
1371
- // Escape analysis should analyze the implcit destructor call which may
1371
+ // Escape analysis should analyze the implicit destructor call which may
1372
1372
// happen due to strong_release and figure out that the object will
1373
1373
// globally escape.
1374
1374
// CHECK-LABEL: CG of check_escaping_implicit_destructor_invocation_via_strong_release
@@ -1385,7 +1385,7 @@ bb0:
1385
1385
return %3 : $()
1386
1386
}
1387
1387
1388
- // Escape analysis should analyze the implcit destructor call which may
1388
+ // Escape analysis should analyze the implicit destructor call which may
1389
1389
// happen due to strong_release and figure out that the object will
1390
1390
// globally escape.
1391
1391
// CHECK-LABEL: CG of check_escaping_implicit_destructor_invocation_via_release_value
You can’t perform that action at this time.
0 commit comments