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