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

View File

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