1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02: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:
Reid Spencer 2006-12-31 22:17:01 +00:00
parent 4d8fdf20cc
commit 45bed286fa

View File

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