[llvm-commits] [llvm] r67681 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Gabor Greif
ggreif at gmail.com
Tue Mar 24 23:32:59 PDT 2009
Author: ggreif
Date: Wed Mar 25 01:32:59 2009
New Revision: 67681
URL: http://llvm.org/viewvc/llvm-project?rev=67681&view=rev
Log:
do not rely on callee being operand 0
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=67681&r1=67680&r2=67681&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Wed Mar 25 01:32:59 2009
@@ -1366,7 +1366,7 @@
}
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() << "\", \""
More information about the llvm-commits
mailing list