summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-04 03:52:24 +0000
committerChris Lattner <sabre@nondot.org>2007-05-04 03:52:24 +0000
commit485a6d8fad0a8698a1a53f400d8672cb274a9f1c (patch)
tree85f7c8a81ad5b7993ef3095dc51b934f83e2ba65 /llvm/lib/Bitcode
parente11c6ce3bce7aec2f11824a7359a794166e35359 (diff)
downloadbcm5719-llvm-485a6d8fad0a8698a1a53f400d8672cb274a9f1c.tar.gz
bcm5719-llvm-485a6d8fad0a8698a1a53f400d8672cb274a9f1c.zip
fix encoding of invoke instructions. kc++ now round trips
llvm-svn: 36737
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 4ca6c24e4ee..9000a5b0d7d 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -609,7 +609,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
// Emit type/value pairs for varargs params.
if (FTy->isVarArg()) {
unsigned NumVarargs = I.getNumOperands()-3-FTy->getNumParams();
- Vals.push_back(NumVarargs);
for (unsigned i = I.getNumOperands()-NumVarargs, e = I.getNumOperands();
i != e; ++i) {
Vals.push_back(VE.getTypeID(I.getOperand(i)->getType()));
OpenPOWER on IntegriCloud