[llvm-commits] [llvm] r107498 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Gabor Greif
ggreif at gmail.com
Fri Jul 2 12:08:46 PDT 2010
Author: ggreif
Date: Fri Jul 2 14:08:46 2010
New Revision: 107498
URL: http://llvm.org/viewvc/llvm-project?rev=107498&view=rev
Log:
use ArgOperand API
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=107498&r1=107497&r2=107498&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Fri Jul 2 14:08:46 2010
@@ -1399,8 +1399,8 @@
if (call->getNumArgOperands() > 1) {
Out << "std::vector<Value*> " << iName << "_params;";
nl(Out);
- for (unsigned i = 1; i < call->getNumOperands(); ++i) {
- Out << iName << "_params.push_back(" << opNames[i] << ");";
+ for (unsigned i = 0; i < call->getNumArgOperands(); ++i) {
+ Out << iName << "_params.push_back(" << opNames[i+1] << ");";
nl(Out);
}
Out << "CallInst* " << iName << " = CallInst::Create("
More information about the llvm-commits
mailing list