BitcodeWriter: fix emission of invoke when calling a var-arg function with operand bundles
llvm-svn: 281940
This commit is contained in:
@@ -2500,7 +2500,7 @@ void ModuleBitcodeWriter::writeInstruction(const Instruction &I,
|
||||
|
||||
// Emit type/value pairs for varargs params.
|
||||
if (FTy->isVarArg()) {
|
||||
for (unsigned i = FTy->getNumParams(), e = I.getNumOperands()-3;
|
||||
for (unsigned i = FTy->getNumParams(), e = II->getNumArgOperands();
|
||||
i != e; ++i)
|
||||
pushValueAndType(I.getOperand(i), InstID, Vals); // vararg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user