Skip to content

Commit 6b977dc

Browse files
committed
[NFC] OSSACanOwned: Renamed field.
1 parent 61c4a03 commit 6b977dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/SILOptimizer/Utils/CanonicalizeOSSALifetime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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());

lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ void CanonicalizeOSSALifetime::extendLivenessToDeadEnds() {
387387

388388
void 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);

0 commit comments

Comments
 (0)