summaryrefslogtreecommitdiff
path: root/gcc/cp/cp-gimplify.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-22 21:15:29 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-22 21:15:29 +0000
commitacd408799af21e3f1d1ebc06e394283c5f1aa5ef (patch)
treef28bae23151fc0d321036e3591b21d3023877f30 /gcc/cp/cp-gimplify.c
parent09892c523ca345c010d17347916388230b9faebd (diff)
downloadgcc-acd408799af21e3f1d1ebc06e394283c5f1aa5ef.tar.gz
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
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r--gcc/cp/cp-gimplify.c2
1 files changed, 2 insertions, 0 deletions
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);