Changes in directory llvm/lib/Transforms/IPO:
GlobalOpt.cpp updated: 1.61 -> 1.62 --- Log message: Fix PR820: http://llvm.org/PR820 and Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll --- Diffs of the changes: (+3 -0) GlobalOpt.cpp | 3 +++ 1 files changed, 3 insertions(+) Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.61 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.62 --- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.61 Sun Jan 22 17:32:06 2006 +++ llvm/lib/Transforms/IPO/GlobalOpt.cpp Fri Jul 7 16:37:01 2006 @@ -1450,6 +1450,9 @@ 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. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits