| ... | @@ -697,8 +697,7 @@ static LLVMValueRef gen_field_ptr(CodeGen *g, AstNode *node, TypeTableEntry **ou | ... | @@ -697,8 +697,7 @@ static LLVMValueRef gen_field_ptr(CodeGen *g, AstNode *node, TypeTableEntry **ou |
| 697 | | 697 | |
| 698 | LLVMValueRef struct_ptr; | 698 | LLVMValueRef struct_ptr; |
| 699 | if (struct_expr_node->type == NodeTypeSymbol) { | 699 | if (struct_expr_node->type == NodeTypeSymbol) { |
| 700 | VariableTableEntry *var = find_variable(struct_expr_node->block_context, | 700 | VariableTableEntry *var = struct_expr_node->data.symbol_expr.variable; |
| 701 | &struct_expr_node->data.symbol_expr.symbol); | | |
| 702 | assert(var); | 701 | assert(var); |
| 703 | | 702 | |
| 704 | if (var->is_ptr && var->type->id == TypeTableEntryIdPointer) { | 703 | if (var->is_ptr && var->type->id == TypeTableEntryIdPointer) { |