diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-09-03 02:02:59 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-09-03 02:02:59 +0000 |
commit | 2d60e1ec0ca2977910c4d8bf3652039d20139eaa (patch) | |
tree | 4b79a6ad9ce2a3a7a10ed1df79621fa765c68401 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 2c5bef2a743c2231ea55c0284145330d960f3cc5 (diff) | |
download | llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.zip llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.tar.gz llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.tar.bz2 |
back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure
llvm-svn: 80871
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 3ea9631..9cb5758 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))); // fixed param. + Vals.push_back(VE.getValueID(I.getOperand(i+3))); // fixed param. // Emit type/value pairs for varargs params. if (FTy->isVarArg()) { - for (unsigned i = FTy->getNumParams(), e = I.getNumOperands()-3; + for (unsigned i = 3+FTy->getNumParams(), e = I.getNumOperands(); i != e; ++i) PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg } |