mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a copy_block_without_escaping %block withoutEscaping %closure instruction
Mandatory pass will clean it up and replace it by a copy_block and is_escaping/cond_fail/release combination on the %closure in follow-up patches. The instruction marks the dependence of a block on a closure that is used as an 'withoutActuallyEscaping' sentinel. rdar://39682865
This commit is contained in:
@@ -398,6 +398,7 @@ InlineCost swift::instructionInlineCost(SILInstruction &I) {
|
||||
case SILInstructionKind::CondBranchInst:
|
||||
case SILInstructionKind::CondFailInst:
|
||||
case SILInstructionKind::CopyBlockInst:
|
||||
case SILInstructionKind::CopyBlockWithoutEscapingInst:
|
||||
case SILInstructionKind::CopyAddrInst:
|
||||
case SILInstructionKind::RetainValueInst:
|
||||
case SILInstructionKind::RetainValueAddrInst:
|
||||
|
||||
Reference in New Issue
Block a user