ignore 'invoke @llvm.donothing', but still keep the edge to the continuation BB

llvm-svn: 160411
This commit is contained in:
Nuno Lopes 2012-07-18 00:07:17 +00:00
parent b84f7bea09
commit 2151497dca
1 changed files with 1 additions and 1 deletions

View 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);