mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-06 03:19:50 +00:00
Fix PR1335 and Transforms/Inline/2007-04-15-InlineEH.ll
llvm-svn: 36090
This commit is contained in:
parent
9978b3f476
commit
601aa5b489
@ -69,10 +69,11 @@ static void HandleInlinedInvoke(InvokeInst *II, BasicBlock *FirstNewBlock,
|
|||||||
if (!isa<CallInst>(I)) continue;
|
if (!isa<CallInst>(I)) continue;
|
||||||
CallInst *CI = cast<CallInst>(I);
|
CallInst *CI = cast<CallInst>(I);
|
||||||
|
|
||||||
// If this is an intrinsic function call, don't convert it to an
|
// If this is an intrinsic function call or an inline asm, don't
|
||||||
// invoke.
|
// convert it to an invoke.
|
||||||
if (CI->getCalledFunction() &&
|
if ((CI->getCalledFunction() &&
|
||||||
CI->getCalledFunction()->getIntrinsicID())
|
CI->getCalledFunction()->getIntrinsicID()) ||
|
||||||
|
isa<InlineAsm>(CI->getCalledValue()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Convert this function call into an invoke instruction.
|
// Convert this function call into an invoke instruction.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user