Fix warning
[oota-llvm.git] / lib / Target / PowerPC / PPC32AsmPrinter.cpp
index 03fc210984295a3aaae7c1ac5ff2ca9743361ddc..8119fd30940f9f2a3badf8734f4bf60a4667811b 100644 (file)
@@ -89,7 +89,7 @@ namespace {
     void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo,
                             MVT::ValueType VT) {
       unsigned char value = MI->getOperand(OpNo).getImmedValue();
-      assert(0 <= value && 31 >= value && "Invalid u5imm argument!");
+      assert(value <= 31 && "Invalid u5imm argument!");
       O << (unsigned int)value;
     }
     void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo,