summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-22 08:28:00 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-22 08:28:00 +0000
commit7a743e15e31701db08f2092538ed2d5dfabe0cdb (patch)
tree608a8cc62fcefefa4e351a15129220b21be28948 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta6eedc3c032e9dd7754b109ebc09b9626d8e86ef (diff)
downloadbcm5719-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.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 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
}
OpenPOWER on IntegriCloud