fold-const.c (tree_expr_nonzero_p): Fix thinko.
authorJeff Law <law@redhat.com>
Fri, 10 Feb 2006 20:31:19 +0000 (13:31 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 10 Feb 2006 20:31:19 +0000 (13:31 -0700)
* fold-const.c (tree_expr_nonzero_p): Fix thinko.

From-SVN: r110849

gcc/ChangeLog
gcc/fold-const.c

index e9225a4faf8c203eb6c185c0e273ab90a6446ee7..38922b62f0c29aedffc16f77b7c9b29bbeca8561 100644 (file)
@@ -1,5 +1,7 @@
 2006-02-10  Jeff Law  <law@redhat.com>
 
+       * fold-const.c (tree_expr_nonzero_p): Fix thinko.
+
        PR tree-optimization/26213
        * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
        loop trying to follow SSA_NAME_VALUE chains.
index 833cc4352dff5c9f8edc3f49bc4b0630ad610198..67991076577de6d85fa523598d10988490a4e177 100644 (file)
@@ -11256,7 +11256,7 @@ tree_expr_nonzero_p (tree t)
        tree inner_type = TREE_TYPE (TREE_OPERAND (t, 0));
        tree outer_type = TREE_TYPE (t);
 
-       return (TYPE_PRECISION (inner_type) >= TYPE_PRECISION (outer_type)
+       return (TYPE_PRECISION (outer_type) >= TYPE_PRECISION (inner_type)
                && tree_expr_nonzero_p (TREE_OPERAND (t, 0)));
       }
       break;