mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Handle ossa instructions in SimplifyCFG
This can in turn trigger try_apply -> apply [nothrow] transformation.
This commit is contained in:
@@ -2319,6 +2319,8 @@ bool SimplifyCFG::simplifyUnreachableBlock(UnreachableInst *UI) {
|
||||
case SILInstructionKind::StrongReleaseInst:
|
||||
case SILInstructionKind::RetainValueInst:
|
||||
case SILInstructionKind::ReleaseValueInst:
|
||||
case SILInstructionKind::DestroyValueInst:
|
||||
case SILInstructionKind::EndBorrowInst:
|
||||
break;
|
||||
// We can only ignore a dealloc_stack instruction if we can ignore all
|
||||
// instructions in the block.
|
||||
|
||||
Reference in New Issue
Block a user