[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp

Misha Brukman brukman at cs.uiuc.edu
Tue Jun 29 14:44:01 PDT 2004


Changes in directory llvm/lib/Target/X86:

Printer.cpp updated: 1.102 -> 1.103

---
Log message:

Fix associativity of parameters to assert(): now it actually makes sense.


---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.102 llvm/lib/Target/X86/Printer.cpp:1.103
--- llvm/lib/Target/X86/Printer.cpp:1.102	Tue Jun 29 14:28:53 2004
+++ llvm/lib/Target/X86/Printer.cpp	Tue Jun 29 14:43:20 2004
@@ -823,8 +823,9 @@
     // register reference for the mod/rm field, it's a memory reference.
     //
     assert(MI->getOperand(0).isRegister() &&
-           (MI->getNumOperands() == 1+4 && isMem(MI, 1)) || 
-(MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && isMem(MI, 1))
+           ((MI->getNumOperands() == 1+4 && isMem(MI, 1)) || 
+            (MI->getNumOperands() == 2+4 && MI->getOperand(5).isImmediate() && 
+             isMem(MI, 1)))
            && "Bad format for MRMSrcMem!");
     O << TII.getName(MI->getOpcode()) << " ";
     printOp(MI->getOperand(0));





More information about the llvm-commits mailing list