ignore 'invoke @llvm.donothing', but still keep the edge to the continuation BB
authorNuno Lopes <nunoplopes@sapo.pt>
Wed, 18 Jul 2012 00:07:17 +0000 (00:07 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Wed, 18 Jul 2012 00:07:17 +0000 (00:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160411 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 42b9099cdc35f93b56834ef403e9a40412d38636..54d8cb71eaa13a206187ec5d2b41d66a4b7130c8 100644 (file)
@@ -1833,7 +1833,7 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
     visitInlineAsm(&I);
   else if (Fn && Fn->isIntrinsic()) {
     assert(Fn->getIntrinsicID() == Intrinsic::donothing);
-    return; // ignore invokes to @llvm.donothing
+    // Ignore invokes to @llvm.donothing: jump directly to the next BB.
   } else
     LowerCallTo(&I, getValue(Callee), false, LandingPad);