mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -92,7 +92,8 @@ SILBasicBlock *SILBuilder::splitBlockForFallthrough() {
|
||||
/// emitDestroyAddr - Try to fold a destroy_addr operation into the previous
|
||||
/// instructions, or generate an explicit one if that fails. If this inserts a
|
||||
/// new instruction, it returns it, otherwise it returns null.
|
||||
DestroyAddrInst *SILBuilder::emitDestroyAddr(SILLocation Loc, SILValue Operand){
|
||||
DestroyAddrInst *SILBuilder::emitDestroyAddrAndFold(SILLocation Loc,
|
||||
SILValue Operand) {
|
||||
// Check to see if the instruction immediately before the insertion point is a
|
||||
// copy_addr from the specified operand. If so, we can fold this into the
|
||||
// copy_addr as a take.
|
||||
|
||||
Reference in New Issue
Block a user