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 | e537ddbdb493c5cf82a367d26b72573529917d65 (patch) | |
tree | e6d0ebab301ebcabd071f4b9070f1d67e54098cf /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | 27e11400ad8d31902cb9a6bcb29166d9497b279b (diff) | |
download | llvm-e537ddbdb493c5cf82a367d26b72573529917d65.zip llvm-e537ddbdb493c5cf82a367d26b72573529917d65.tar.gz llvm-e537ddbdb493c5cf82a367d26b72573529917d65.tar.bz2 |
use ArgOperand API
llvm-svn: 107498
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 9056cef..2f4c669 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/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(" |