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:
parent
9b4ca617e8
commit
8bce9e986f
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue