mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Fix a cut-and-paste bug for processing of InvokeInst parameter attributes.
The lookup of parameter attributes was offset by two because of the additional operands in an invoke instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6c59fd89f
commit
6359618e43
@ -1237,8 +1237,8 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
||||
if (op > 3)
|
||||
Out << ',';
|
||||
writeOperand(I.getOperand(op), true);
|
||||
if (FTy->getParamAttrs(op) != FunctionType::NoAttributeSet)
|
||||
Out << " " << FTy->getParamAttrsText(FTy->getParamAttrs(op));
|
||||
if (FTy->getParamAttrs(op-2) != FunctionType::NoAttributeSet)
|
||||
Out << " " << FTy->getParamAttrsText(FTy->getParamAttrs(op-2));
|
||||
}
|
||||
|
||||
Out << " )\n\t\t\tto";
|
||||
|
Loading…
Reference in New Issue
Block a user