aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 7d1b715..b482ffa 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -828,7 +828,8 @@ voidify_wrapper_expr (tree wrapper, tree temp)
goto restart;
}
/* The C++ frontend already did this for us. */
- else if (TREE_CODE (*p) == INIT_EXPR)
+ else if (TREE_CODE (*p) == INIT_EXPR
+ || TREE_CODE (*p) == TARGET_EXPR)
temp = TREE_OPERAND (*p, 0);
/* If we're returning a dereference, move the dereference
outside the wrapper. */