Skip to content

Commit bf5ac43

Browse files
committed
[sil-combine] Enable unreachable pruning for ownership.
This doesn't mess with ownership, so we can just enable it.
1 parent de58e79 commit bf5ac43

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/SILOptimizer/SILCombiner/SILCombinerMiscVisitors.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,9 +1614,6 @@ SILCombiner::visitInjectEnumAddrInst(InjectEnumAddrInst *IEAI) {
16141614
SILInstruction *
16151615
SILCombiner::
16161616
visitUnreachableInst(UnreachableInst *UI) {
1617-
if (UI->getFunction()->hasOwnership())
1618-
return nullptr;
1619-
16201617
// Make sure that this unreachable instruction
16211618
// is the last instruction in the basic block.
16221619
if (UI->getParent()->getTerminator() == UI)

0 commit comments

Comments
 (0)