[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 5 13:03:05 PDT 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.89 -> 1.90
---
Log message:
Don't call isDef on non-registers
---
Diffs of the changes: (+2 -1)
AsmPrinter.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.89 llvm/lib/CodeGen/AsmPrinter.cpp:1.90
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.89 Sat Aug 12 16:29:52 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Tue Sep 5 15:02:51 2006
@@ -647,7 +647,8 @@
// Count the number of register definitions.
unsigned NumDefs = 0;
- for (; MI->getOperand(NumDefs).isDef(); ++NumDefs)
+ for (; MI->getOperand(NumDefs).isReg() && MI->getOperand(NumDefs).isDef();
+ ++NumDefs)
assert(NumDefs != NumOperands-1 && "No asm string?");
assert(MI->getOperand(NumDefs).isExternalSymbol() && "No asm string?");
More information about the llvm-commits
mailing list