From 38b12ce1864a49e1c00b2d9fb5da83c69f77fcec Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 3 May 2007 22:19:34 +0000 Subject: [PATCH] don't bother encoding # varargs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36705 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Writer/BitcodeWriter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 68f0a0d1637..270ded55cbc 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())); -- 2.34.1