at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48096
91177308-0d34-0410-b5e6-
96231b3b80d8
new UnwindInst(Pred); // Use unwind.
Changed = true;
}
- } else if (InvokeInst *II = dyn_cast<InvokeInst>(Pred->getTerminator()))
+ } else if (InvokeInst *II = dyn_cast<InvokeInst>(Pred->getTerminator())) {
if (II->getUnwindDest() == BB) {
// Insert a new branch instruction before the invoke, because this
// is now a fall through...
delete II;
Changed = true;
}
+ } else if (Pred->getUnwindDest() == BB) {
+ Pred->setUnwindDest(NULL);
+ }
Preds.pop_back();
}
cleanup:
ret i32 1
}
+
+define i32 @f3() {
+entry: unwind_to %cleanup
+ call void @g(i32 0)
+ ret i32 0
+cleanup:
+ unwind
+}