except.c (initialize_handler_parm): Use fold_build_cleanup_point_expr.
authorJason Merrill <jason@gcc.gnu.org>
Wed, 5 Sep 2007 01:04:05 +0000 (21:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Sep 2007 01:04:05 +0000 (21:04 -0400)
        * except.c (initialize_handler_parm): Use
        fold_build_cleanup_point_expr.

From-SVN: r128115

gcc/cp/except.c

index 3217f27c0d5d495d5a3cd90f683c8606cda24cc4..199d18574f0741c37ab31063b8a5349fd6509516 100644 (file)
@@ -390,7 +390,7 @@ initialize_handler_parm (tree decl, tree exp)
                          CONV_IMPLICIT|CONV_FORCE_TEMP, 0);
       /* Force cleanups now to avoid nesting problems with the
         MUST_NOT_THROW_EXPR.  */
-      init = build1 (CLEANUP_POINT_EXPR, TREE_TYPE (init), init);
+      init = fold_build_cleanup_point_expr (TREE_TYPE (init), init);
       init = build1 (MUST_NOT_THROW_EXPR, TREE_TYPE (init), init);
     }