fix a warning
authorChris Lattner <sabre@nondot.org>
Mon, 19 Mar 2007 00:39:32 +0000 (00:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Mar 2007 00:39:32 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35152 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index c8a2e2eaef5ebe25734d1eb8e357f243109ee677..117448225df1ec6c22b33ccfe32eb91999c21c89 100644 (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);