diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-25 06:32:59 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-25 06:32:59 +0000 |
commit | 0c8f7dc67cebcb1eef5984baaa4802cb46f72797 (patch) | |
tree | 9bf0e7b117496e7dee506022b5d6e437f8035bf9 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 25cb0d75d0525cf36a678a28a4281a941fb8d7a7 (diff) |
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
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 9f9c1c4136..8262408d15 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -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() << "\", \"" |