fix a warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-03-19 00:39:32 +00:00
parent 12779797f7
commit d435dbcbf9

View File

@ -4526,7 +4526,7 @@ isOperandValidForConstraint(SDOperand Op, char Constraint, SelectionDAG &DAG) {
case 'I':
if (isa<ConstantSDNode>(Op)) {
unsigned Value = cast<ConstantSDNode>(Op)->getValue();
if (Value >= 0 && Value <= 31)
if (Value <= 31)
return Op;
else
return SDOperand(0,0);