[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Dec 4 11:29:01 PST 2002
Changes in directory llvm/lib/Target/X86:
Printer.cpp updated: 1.21 -> 1.22
---
Log message:
Avoid bad assertion
---
Diffs of the changes:
Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.21 llvm/lib/Target/X86/Printer.cpp:1.22
--- llvm/lib/Target/X86/Printer.cpp:1.21 Wed Dec 4 00:45:19 2002
+++ llvm/lib/Target/X86/Printer.cpp Wed Dec 4 11:28:40 2002
@@ -183,7 +183,7 @@
assert(isReg(MI->getOperand(0)) &&
(MI->getNumOperands() == 1 ||
(MI->getNumOperands() == 2 &&
- (MI->getOperand(1).getVRegValue() ||
+ (MI->getOperand(1).getVRegValueOrNull() ||
isImmediate(MI->getOperand(1))))) &&
"Illegal form for AddRegFrm instruction!");
More information about the llvm-commits
mailing list