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 {
261261 SILValue currentDef;
262262
263263 // / Instructions beyond which liveness is not extended by destroy uses.
264- ArrayRef<SILInstruction *> currentLexicalLifetimeEnds ;
264+ ArrayRef<SILInstruction *> explicitLifetimeEnds ;
265265
266266 // / Original points in the CFG where the current value's lifetime is consumed
267267 // / or destroyed. Each block either contains a consuming instruction (e.g.
@@ -368,7 +368,7 @@ class CanonicalizeOSSALifetime final {
368368 clear ();
369369
370370 currentDef = def;
371- currentLexicalLifetimeEnds = lexicalLifetimeEnds;
371+ explicitLifetimeEnds = lexicalLifetimeEnds;
372372
373373 liveness->initializeDiscoveredBlocks (&discoveredBlocks);
374374 liveness->initializeDef (getCurrentDef ());
Original file line number Diff line number Diff line change @@ -387,9 +387,9 @@ void CanonicalizeOSSALifetime::extendLivenessToDeadEnds() {
387387
388388void CanonicalizeOSSALifetime::extendLivenessToDeinitBarriers () {
389389 SmallVector<SILInstruction *, 8 > ends;
390- if (currentLexicalLifetimeEnds .size () > 0 ) {
390+ if (explicitLifetimeEnds .size () > 0 ) {
391391 visitExtendedUnconsumedBoundary (
392- currentLexicalLifetimeEnds ,
392+ explicitLifetimeEnds ,
393393 [&ends](auto *instruction, auto lifetimeEnding) {
394394 instruction->visitSubsequentInstructions ([&](auto *next) {
395395 ends.push_back (next);
You can’t perform that action at this time.
0 commit comments