[SimplifyCFG] changeToCall(): switch to non-permissive DomTree updates
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 7 Jan 2021 21:58:49 +0000 (00:58 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 7 Jan 2021 23:15:27 +0000 (02:15 +0300)
No actual changes needed, normal and unwind destinations of an invoke
can never be identical.

llvm/lib/Transforms/Utils/Local.cpp

index 5b9d5d3..9f8cec9 100644 (file)
@@ -2110,7 +2110,7 @@ void llvm::changeToCall(InvokeInst *II, DomTreeUpdater *DTU) {
   UnwindDestBB->removePredecessor(BB);
   II->eraseFromParent();
   if (DTU)
-    DTU->applyUpdatesPermissive({{DominatorTree::Delete, BB, UnwindDestBB}});
+    DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDestBB}});
 }
 
 BasicBlock *llvm::changeToInvokeAndSplitBasicBlock(CallInst *CI,