From acd408799af21e3f1d1ebc06e394283c5f1aa5ef Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 22 Jun 2004 21:15:29 +0000 Subject: PR c++/16112 * cp-gimplify.c (cp_gimplify_init_expr): Look through CLEANUP_POINT_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83514 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/cp-gimplify.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cp/cp-gimplify.c') diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index f9b236472a8..db88e052b4d 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -116,6 +116,8 @@ cp_gimplify_init_expr (tree *expr_p, tree *pre_p, tree *post_p) case, I guess we'll need to replace references somehow. */ if (TREE_CODE (from) == TARGET_EXPR) from = TARGET_EXPR_INITIAL (from); + if (TREE_CODE (from) == CLEANUP_POINT_EXPR) + from = TREE_OPERAND (from, 0); /* Look through any COMPOUND_EXPRs. */ sub = expr_last (from); -- cgit v1.2.1