summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 613d85ae..b0f784d4 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1303,6 +1303,7 @@ dead_assignment_remover::visit_expr_statement (expr_statement* s)
expression** last_expr = current_expr;
current_expr = & s->value;
s->value->visit (this);
+ s->tok = s->value->tok; // in case it was replaced
current_expr = last_expr;
}