mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
do not rely on callee being operand 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25cb0d75d0
commit
0c8f7dc67c
@ -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() << "\", \""
|
||||
|
Loading…
Reference in New Issue
Block a user