diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-03 22:19:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-03 22:19:34 +0000 |
commit | 4bb39dbfde5231b1ba1eda2552f3d51605e37fe6 (patch) | |
tree | 8c64d5fe27826f3302c775e6d31269d11fb1d5bd /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 6be58c65d4f7408b183e4267cdc82662df5269c6 (diff) | |
download | bcm5719-llvm-4bb39dbfde5231b1ba1eda2552f3d51605e37fe6.tar.gz bcm5719-llvm-4bb39dbfde5231b1ba1eda2552f3d51605e37fe6.zip |
don't bother encoding # varargs
llvm-svn: 36705
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 68f0a0d1637..270ded55cbc 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -660,7 +660,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, // Emit type/value pairs for varargs params. if (FTy->isVarArg()) { unsigned NumVarargs = I.getNumOperands()-1-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())); |