forked from OSchip/llvm-project
Fix PR820 and Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll
llvm-svn: 29071
This commit is contained in:
parent
c20367a548
commit
fd2e13b107
|
@ -1450,6 +1450,9 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal,
|
|||
AI->getName()));
|
||||
InstResult = AllocaTmps.back();
|
||||
} else if (CallInst *CI = dyn_cast<CallInst>(CurInst)) {
|
||||
// Cannot handle inline asm.
|
||||
if (isa<InlineAsm>(CI->getOperand(0))) return false;
|
||||
|
||||
// Resolve function pointers.
|
||||
Function *Callee = dyn_cast<Function>(getVal(Values, CI->getOperand(0)));
|
||||
if (!Callee) return false; // Cannot resolve.
|
||||
|
|
Loading…
Reference in New Issue