diff options
author | Jeff Law <law@redhat.com> | 2006-02-10 13:31:19 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2006-02-10 13:31:19 -0700 |
commit | 284cbef5cfa2f57a5c9a01da8d97cfce53d76121 (patch) | |
tree | e1e55ba66ec8aae88f550c3d23985334e76c4451 /gcc/fold-const.c | |
parent | 61864771af6d7a5834f9df225b4ddd5542d656b0 (diff) | |
download | gcc-284cbef5cfa2f57a5c9a01da8d97cfce53d76121.zip gcc-284cbef5cfa2f57a5c9a01da8d97cfce53d76121.tar.gz gcc-284cbef5cfa2f57a5c9a01da8d97cfce53d76121.tar.bz2 |
fold-const.c (tree_expr_nonzero_p): Fix thinko.
* fold-const.c (tree_expr_nonzero_p): Fix thinko.
From-SVN: r110849
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 833cc43..6799107 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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; |