fold-const.c (negate_expr): Add break after the if.

2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
        the if.

From-SVN: r107682
This commit is contained in:
Andrew Pinski 2005-11-29 22:18:04 +00:00 committed by Andrew Pinski
parent 9b4ca617e8
commit 8bce9e986f
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
* fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
the if.
2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
* fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.

View File

@ -1059,6 +1059,7 @@ negate_expr (tree t)
if (INTEGRAL_TYPE_P (type))
return fold_build2 (PLUS_EXPR, type, TREE_OPERAND (t, 0),
build_int_cst (type, 1));
break;
case INTEGER_CST:
tem = fold_negate_const (t, type);