1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Revert this part of r45073 until the verifier is

changed not to reject invoke of inline asm.

llvm-svn: 45077
This commit is contained in:
Duncan Sands 2007-12-16 21:01:21 +00:00
parent 5e2b033d30
commit 830037ab2d

View File

@ -69,8 +69,9 @@ static void HandleInlinedInvoke(InvokeInst *II, BasicBlock *FirstNewBlock,
if (!isa<CallInst>(I)) continue;
CallInst *CI = cast<CallInst>(I);
// If this call cannot unwind, don't convert it to an invoke.
if (CI->isNoUnwind())
// If this call cannot unwind or is an inline asm, don't
// convert it to an invoke.
if (CI->isNoUnwind() || isa<InlineAsm>(CI->getCalledValue()))
continue;
// Convert this function call into an invoke instruction.