diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-03-22 08:28:00 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-03-22 08:28:00 +0000 |
commit | 7a743e15e31701db08f2092538ed2d5dfabe0cdb (patch) | |
tree | 608a8cc62fcefefa4e351a15129220b21be28948 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | a6eedc3c032e9dd7754b109ebc09b9626d8e86ef (diff) | |
download | bcm5719-llvm-7a743e15e31701db08f2092538ed2d5dfabe0cdb.tar.gz bcm5719-llvm-7a743e15e31701db08f2092538ed2d5dfabe0cdb.zip |
Now that hopefully all direct accesses to InvokeInst operands are fixed
we can reapply the InvokeInst operand reordering patch. (see r98957).
llvm-svn: 99170
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 3ab27266674..1f69e168516 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+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 } |