do not rely on callee being operand 0

llvm-svn: 67681
This commit is contained in:
Gabor Greif 2009-03-25 06:32:59 +00:00
parent aabb0b11a3
commit 2755edf4c4
1 changed files with 1 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ namespace {
}
case Instruction::Call:{
const CallInst* call = cast<CallInst>(I);
if (InlineAsm* ila = dyn_cast<InlineAsm>(call->getOperand(0))) {
if (const InlineAsm* ila = dyn_cast<InlineAsm>(call->getCalledValue())) {
Out << "InlineAsm* " << getCppName(ila) << " = InlineAsm::get("
<< getCppName(ila->getFunctionType()) << ", \""
<< ila->getAsmString() << "\", \""