Skip to content

Commit bbb4b00

Browse files
committed
Handle ossa instructions in SimplifyCFG
This can in turn trigger try_apply -> apply [nothrow] transformation.
1 parent 7b7da48 commit bbb4b00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,6 +2319,8 @@ bool SimplifyCFG::simplifyUnreachableBlock(UnreachableInst *UI) {
23192319
case SILInstructionKind::StrongReleaseInst:
23202320
case SILInstructionKind::RetainValueInst:
23212321
case SILInstructionKind::ReleaseValueInst:
2322+
case SILInstructionKind::DestroyValueInst:
2323+
case SILInstructionKind::EndBorrowInst:
23222324
break;
23232325
// We can only ignore a dealloc_stack instruction if we can ignore all
23242326
// instructions in the block.

0 commit comments

Comments
 (0)