mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +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. llvm-svn: 32801
This commit is contained in:
parent
4d8fdf20cc
commit
45bed286fa
@ -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…
x
Reference in New Issue
Block a user