Fix warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15964 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-08-21 19:11:03 +00:00
parent 57b6eec5e6
commit 12585baf1a
2 changed files with 2 additions and 2 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,

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,