mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
fix encoding of invoke instructions. kc++ now round trips
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35a0470e02
commit
1d1f9ade54
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user