aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index c9123912fe..81874e0fdb 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -2515,6 +2515,7 @@ static TypeTableEntry *analyze_lvalue(CodeGen *g, ImportTableEntry *import, Bloc
expected_rhs_type = g->builtin_types.entry_invalid;
} else {
expected_rhs_type = var->type;
+ lhs_node->data.symbol_expr.variable = var;
}
} else {
add_node_error(g, lhs_node,