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:
Mike Stump 1995-05-02 19:39:17 +00:00
parent 91e6623506
commit 122977b9df
1 changed files with 1 additions and 1 deletions

View File

@ -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;
{