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;
|
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());
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user