File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ class CanonicalizeOSSALifetime final {
261
261
SILValue currentDef;
262
262
263
263
// / Instructions beyond which liveness is not extended by destroy uses.
264
- ArrayRef<SILInstruction *> currentLexicalLifetimeEnds ;
264
+ ArrayRef<SILInstruction *> explicitLifetimeEnds ;
265
265
266
266
// / Original points in the CFG where the current value's lifetime is consumed
267
267
// / or destroyed. Each block either contains a consuming instruction (e.g.
@@ -368,7 +368,7 @@ class CanonicalizeOSSALifetime final {
368
368
clear ();
369
369
370
370
currentDef = def;
371
- currentLexicalLifetimeEnds = lexicalLifetimeEnds;
371
+ explicitLifetimeEnds = lexicalLifetimeEnds;
372
372
373
373
liveness->initializeDiscoveredBlocks (&discoveredBlocks);
374
374
liveness->initializeDef (getCurrentDef ());
Original file line number Diff line number Diff line change @@ -387,9 +387,9 @@ void CanonicalizeOSSALifetime::extendLivenessToDeadEnds() {
387
387
388
388
void CanonicalizeOSSALifetime::extendLivenessToDeinitBarriers () {
389
389
SmallVector<SILInstruction *, 8 > ends;
390
- if (currentLexicalLifetimeEnds .size () > 0 ) {
390
+ if (explicitLifetimeEnds .size () > 0 ) {
391
391
visitExtendedUnconsumedBoundary (
392
- currentLexicalLifetimeEnds ,
392
+ explicitLifetimeEnds ,
393
393
[&ends](auto *instruction, auto lifetimeEnding) {
394
394
instruction->visitSubsequentInstructions ([&](auto *next) {
395
395
ends.push_back (next);
You can’t perform that action at this time.
0 commit comments