[NFC] OSSACanOwned: Renamed field.

This commit is contained in:
Nate Chandler
2025-04-21 17:51:16 -07:00
parent 61c4a0311f
commit 6b977dc43b
2 changed files with 4 additions and 4 deletions

View File

@@ -261,7 +261,7 @@ private:
SILValue currentDef;
/// Instructions beyond which liveness is not extended by destroy uses.
ArrayRef<SILInstruction *> currentLexicalLifetimeEnds;
ArrayRef<SILInstruction *> explicitLifetimeEnds;
/// Original points in the CFG where the current value's lifetime is consumed
/// or destroyed. Each block either contains a consuming instruction (e.g.
@@ -368,7 +368,7 @@ public:
clear();
currentDef = def;
currentLexicalLifetimeEnds = lexicalLifetimeEnds;
explicitLifetimeEnds = lexicalLifetimeEnds;
liveness->initializeDiscoveredBlocks(&discoveredBlocks);
liveness->initializeDef(getCurrentDef());

View File

@@ -387,9 +387,9 @@ void CanonicalizeOSSALifetime::extendLivenessToDeadEnds() {
void CanonicalizeOSSALifetime::extendLivenessToDeinitBarriers() {
SmallVector<SILInstruction *, 8> ends;
if (currentLexicalLifetimeEnds.size() > 0) {
if (explicitLifetimeEnds.size() > 0) {
visitExtendedUnconsumedBoundary(
currentLexicalLifetimeEnds,
explicitLifetimeEnds,
[&ends](auto *instruction, auto lifetimeEnding) {
instruction->visitSubsequentInstructions([&](auto *next) {
ends.push_back(next);