[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Reid Spencer
reid at x10sys.com
Sun Dec 31 14:17:16 PST 2006
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.232 -> 1.233
---
Log message:
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.
---
Diffs of the changes: (+2 -2)
AsmWriter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.232 llvm/lib/VMCore/AsmWriter.cpp:1.233
--- llvm/lib/VMCore/AsmWriter.cpp:1.232 Sat Dec 30 23:24:50 2006
+++ llvm/lib/VMCore/AsmWriter.cpp Sun Dec 31 16:17:01 2006
@@ -1237,8 +1237,8 @@
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";
More information about the llvm-commits
mailing list