diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-02 19:08:46 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-02 19:08:46 +0000 |
commit | 53ba550df1980164c016954e4b132d5a5552ada7 (patch) | |
tree | 8934e1be8267bb8d9c891f3192b9d371f8226591 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 8c1ffae068110f1ea53cd4898eeda2da30f9a305 (diff) |
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 9056cefb5b..2f4c669f48 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1399,8 +1399,8 @@ void CppWriter::printInstruction(const Instruction *I, 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(" |