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
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";