summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-03-25 06:32:59 +0000
committerGabor Greif <ggreif@gmail.com>2009-03-25 06:32:59 +0000
commit2755edf4c4c6e4c129daa24fe40362872040510c (patch)
tree4c1120ad07142405dd4a5a6f42da5da0659cfdd4 /llvm/lib/Target/CppBackend/CPPBackend.cpp
parentaabb0b11a3c1d8a6bb859db80400cffdcc9b336f (diff)
downloadbcm5719-llvm-2755edf4c4c6e4c129daa24fe40362872040510c.tar.gz
bcm5719-llvm-2755edf4c4c6e4c129daa24fe40362872040510c.zip
do not rely on callee being operand 0
llvm-svn: 67681
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 9f9c1c41360..8262408d15c 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/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() << "\", \""
OpenPOWER on IntegriCloud