summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-22 09:11:00 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-22 09:11:00 +0000
commite1517a084f56cd23dd4a64338e0865f53e978d9b (patch)
tree4e12a84b1a2fa11406d3f67c8884647983d532fb /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent7a743e15e31701db08f2092538ed2d5dfabe0cdb (diff)
downloadbcm5719-llvm-e1517a084f56cd23dd4a64338e0865f53e978d9b.tar.gz
bcm5719-llvm-e1517a084f56cd23dd4a64338e0865f53e978d9b.zip
backing out r99170 because it still fails on clang-x86_64-darwin10-fnt
llvm-svn: 99171
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 1f69e168516..3ab27266674 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -1090,11 +1090,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
}
OpenPOWER on IntegriCloud