summaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 22:19:34 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 22:19:34 +0000
commit38b12ce1864a49e1c00b2d9fb5da83c69f77fcec (patch)
tree95801572544664357969239d221bca5276f7fa13 /lib/Bitcode/Writer
parente825ed5a031937ad27d83bca12acf5533d7e0fae (diff)
downloadexternal_llvm-38b12ce1864a49e1c00b2d9fb5da83c69f77fcec.zip
external_llvm-38b12ce1864a49e1c00b2d9fb5da83c69f77fcec.tar.gz
external_llvm-38b12ce1864a49e1c00b2d9fb5da83c69f77fcec.tar.bz2
don't bother encoding # varargs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 68f0a0d..270ded5 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/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()));