Handle ossa instructions in SimplifyCFG

This can in turn trigger try_apply -> apply [nothrow] transformation.
This commit is contained in:
Meghana Gupta
2023-10-22 23:04:09 -07:00
parent 58a19e94eb
commit 79c8f5da2d

View File

@@ -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.