]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
small tweak
authorMike Stump <mrs@gcc.gnu.org>
Tue, 2 May 1995 21:54:39 +0000 (21:54 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Tue, 2 May 1995 21:54:39 +0000 (21:54 +0000)
From-SVN: r9566

gcc/fold-const.c

index dd0f8a2b75d23398ac2d0adc772d580fc4db5a58..7c137ec39a762290f5e636339597a6df1a339f7c 100644 (file)
@@ -5044,8 +5044,8 @@ fold (expr)
       /* Pull arithmetic ops out of the CLEANUP_POINT_EXPR where
          appropriate.  */
     case CLEANUP_POINT_EXPR:
-      if (! TREE_SIDE_EFFECTS (arg0) && type == TREE_TYPE (arg0))
-       return arg0;
+      if (! TREE_SIDE_EFFECTS (arg0))
+       return convert (type, arg0);
 
       {
        enum tree_code code0 = TREE_CODE (arg0);