Fix warning

llvm-svn: 15964
This commit is contained in:
Chris Lattner 2004-08-21 19:11:03 +00:00
parent 04f4d52d9e
commit f7833ba375
1 changed files with 1 additions and 1 deletions

View 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,