forked from OSchip/llvm-project
ignore 'invoke @llvm.donothing', but still keep the edge to the continuation BB
llvm-svn: 160411
This commit is contained in:
parent
b84f7bea09
commit
2151497dca
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue