| author | |
| committer | |
| log | 74eaf4376800ab1a3405a69e4f65ecfecb1e1db9 |
| tree | 94873ccfaaa19f2dd02b15b17a4bb3a788774bf9 |
| parent | 0b94c83debd00846fb878f87323bdf16aa07bffc |
2 files changed, 2 insertions(+), 2 deletions(-)
src/analyze.cpp+1| ... | ... | @@ -2515,6 +2515,7 @@ static TypeTableEntry *analyze_lvalue(CodeGen *g, ImportTableEntry *import, Bloc |
| 2515 | 2515 | expected_rhs_type = g->builtin_types.entry_invalid; |
| 2516 | 2516 | } else { |
| 2517 | 2517 | expected_rhs_type = var->type; |
| 2518 | lhs_node->data.symbol_expr.variable = var; | |
| 2518 | 2519 | } |
| 2519 | 2520 | } else { |
| 2520 | 2521 | add_node_error(g, lhs_node, |
src/codegen.cpp+1-2| ... | ... | @@ -889,8 +889,7 @@ static LLVMValueRef gen_lvalue(CodeGen *g, AstNode *expr_node, AstNode *node, |
| 889 | 889 | LLVMValueRef target_ref; |
| 890 | 890 | |
| 891 | 891 | if (node->type == NodeTypeSymbol) { |
| 892 | VariableTableEntry *var = find_variable(expr_node->block_context, | |
| 893 | &node->data.symbol_expr.symbol); | |
| 892 | VariableTableEntry *var = node->data.symbol_expr.variable; | |
| 894 | 893 | assert(var); |
| 895 | 894 | |
| 896 | 895 | *out_type_entry = var->type; |