aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index fe175f0..47209b2 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -294,6 +294,9 @@ build_target_expr_with_type (init, type)
tree slot;
tree rval;
+ if (TREE_CODE (init) == TARGET_EXPR)
+ return init;
+
slot = build (VAR_DECL, type);
DECL_ARTIFICIAL (slot) = 1;
DECL_CONTEXT (slot) = current_function_decl;