diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-09-03 00:18:58 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-09-03 00:18:58 +0000 |
commit | 14dfba6d6691218a791942429f5b3d19ca8f6980 (patch) | |
tree | 0ed5b95a547a2e485a900ddd1883fa432e47c49c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | f400442927956601208bdc8033fca9d37a16cd9b (diff) | |
download | bcm5719-llvm-14dfba6d6691218a791942429f5b3d19ca8f6980.tar.gz bcm5719-llvm-14dfba6d6691218a791942429f5b3d19ca8f6980.zip |
re-commit r66920 (which has been backed out in r66953) I may have more luck this time. I'll back out if needed...
llvm-svn: 80858
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 9cb57585762..3ea96317485 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -960,11 +960,11 @@ static void WriteInstruction(const Instruction &I, unsigned InstID, // Emit value #'s for the fixed parameters. for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) - Vals.push_back(VE.getValueID(I.getOperand(i+3))); // fixed param. + Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param. // Emit type/value pairs for varargs params. if (FTy->isVarArg()) { - for (unsigned i = 3+FTy->getNumParams(), e = I.getNumOperands(); + for (unsigned i = FTy->getNumParams(), e = I.getNumOperands()-3; i != e; ++i) PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg } |