mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] OSSACanOwned: Renamed field.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user