mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-21 03:37:47 +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.
|
// Emit type/value pairs for varargs params.
|
||||||
if (FTy->isVarArg()) {
|
if (FTy->isVarArg()) {
|
||||||
unsigned NumVarargs = I.getNumOperands()-3-FTy->getNumParams();
|
unsigned NumVarargs = I.getNumOperands()-3-FTy->getNumParams();
|
||||||
Vals.push_back(NumVarargs);
|
|
||||||
for (unsigned i = I.getNumOperands()-NumVarargs, e = I.getNumOperands();
|
for (unsigned i = I.getNumOperands()-NumVarargs, e = I.getNumOperands();
|
||||||
i != e; ++i) {
|
i != e; ++i) {
|
||||||
Vals.push_back(VE.getTypeID(I.getOperand(i)->getType()));
|
Vals.push_back(VE.getTypeID(I.getOperand(i)->getType()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user