From c1bb7f86700413fe89cb96f5c4121fd5010c0094 Mon Sep 17 00:00:00 2001
From: Jason Merrill <jason@gcc.gnu.org>
Date: Tue, 4 Sep 2007 21:04:05 -0400
Subject: [PATCH] except.c (initialize_handler_parm): Use
 fold_build_cleanup_point_expr.

        * except.c (initialize_handler_parm): Use
        fold_build_cleanup_point_expr.

From-SVN: r128115
---
 gcc/cp/except.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 3217f27c0d5d..199d18574f07 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -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);
     }
 
-- 
GitLab