aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index e371d30..b43efcd 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -6471,7 +6471,7 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup)
TARGET_EXPR below since otherwise the INIT_EXPR will
attempt to make a bitwise copy of EXPR to intialize
VAR. */
- if (TREE_CODE (init) != TARGET_EXPR)
+ if (TREE_CODE (expr) != TARGET_EXPR)
expr = get_target_expr (expr);
/* Create the INIT_EXPR that will initialize the temporary
variable. */