projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25cb0d7
)
do not rely on callee being operand 0
author
Gabor Greif
<ggreif@gmail.com>
Wed, 25 Mar 2009 06:32:59 +0000
(06:32 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Wed, 25 Mar 2009 06:32:59 +0000
(06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67681
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/CppBackend/CPPBackend.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/CppBackend/CPPBackend.cpp
b/lib/Target/CppBackend/CPPBackend.cpp
index 9f9c1c41360591c0f56615b8abed5336efd42fd4..8262408d15cdea3ce1ec16d38bc709198f5466ae 100644
(file)
--- 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() << "\", \""