[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Wed May 17 12:24:44 PDT 2006



Changes in directory llvm/lib/Target/Alpha:

AlphaAsmPrinter.cpp updated: 1.42 -> 1.43
---
Log message:

Added sanity check for obviously bogus immediates

---
Diffs of the changes:  (+1 -0)

 AlphaAsmPrinter.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.42 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.43
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.42	Mon May  8 23:59:56 2006
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp	Wed May 17 14:24:31 2006
@@ -82,6 +82,7 @@
     O << TM.getRegisterInfo()->get(MO.getReg()).Name;
   } else if (MO.isImmediate()) {
     O << MO.getImmedValue();
+    assert(MO.getImmedValue() < (1 << 30));
   } else {
     printOp(MO);
   }






More information about the llvm-commits mailing list