mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename SILBuilder::emitDestroyAddr => SILBuilder::emitDestroyAddrAndFold.
Now it matches SILBuilder::emit{StrongRelease,ReleaseValue}AndFold which perform
the same operation but on object types.
Swift SVN r27806
This commit is contained in:
@@ -1581,7 +1581,7 @@ SILValue LifetimeChecker::handleConditionalInitAssign() {
|
||||
// Emit a destroy_addr in the taken block.
|
||||
B.setInsertionPoint(TrueBB->begin());
|
||||
SILValue EltPtr = TheMemory.emitElementAddress(Elt, Loc, B);
|
||||
if (auto *DA = B.emitDestroyAddr(Loc, EltPtr))
|
||||
if (auto *DA = B.emitDestroyAddrAndFold(Loc, EltPtr))
|
||||
Releases.push_back(DA);
|
||||
}
|
||||
|
||||
@@ -1654,7 +1654,7 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
|
||||
// destroy its value at releases position.
|
||||
B.setInsertionPoint(Release);
|
||||
SILValue EltPtr = TheMemory.emitElementAddress(Elt, Loc, B);
|
||||
if (auto *DA = B.emitDestroyAddr(Release->getLoc(), EltPtr))
|
||||
if (auto *DA = B.emitDestroyAddrAndFold(Release->getLoc(), EltPtr))
|
||||
Releases.push_back(DA);
|
||||
continue;
|
||||
}
|
||||
@@ -1701,7 +1701,7 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
|
||||
// Set up the conditional destroy block.
|
||||
B.setInsertionPoint(CondDestroyBlock->begin());
|
||||
SILValue EltPtr = TheMemory.emitElementAddress(Elt, Loc, B);
|
||||
if (auto *DA = B.emitDestroyAddr(Loc, EltPtr))
|
||||
if (auto *DA = B.emitDestroyAddrAndFold(Loc, EltPtr))
|
||||
Releases.push_back(DA);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user