fold-const.c (fold): Ensure that we don't alter the expression's type when folding CLEANUP_POINT_EXPRs.
* fold-const.c (fold): Ensure that we don't alter the expression's type when folding CLEANUP_POINT_EXPRs. From-SVN: r9563
This commit is contained in:
parent
91e6623506
commit
122977b9df
|
@ -5044,7 +5044,7 @@ fold (expr)
|
|||
/* Pull arithmetic ops out of the CLEANUP_POINT_EXPR where
|
||||
appropriate. */
|
||||
case CLEANUP_POINT_EXPR:
|
||||
if (! TREE_SIDE_EFFECTS (arg0))
|
||||
if (! TREE_SIDE_EFFECTS (arg0) && type == TREE_TYPE (arg0))
|
||||
return arg0;
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue