From 122977b9df2cc7098292c6555c617ad423a2a2ab Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 2 May 1995 19:39:17 +0000 Subject: [PATCH] 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 --- gcc/fold-const.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 56f228cd764..dd0f8a2b75d 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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; {