parent
a2035eefba
commit
d8d0f65654
|
@ -697,8 +697,7 @@ static LLVMValueRef gen_field_ptr(CodeGen *g, AstNode *node, TypeTableEntry **ou
|
||||||
|
|
||||||
LLVMValueRef struct_ptr;
|
LLVMValueRef struct_ptr;
|
||||||
if (struct_expr_node->type == NodeTypeSymbol) {
|
if (struct_expr_node->type == NodeTypeSymbol) {
|
||||||
VariableTableEntry *var = find_variable(struct_expr_node->block_context,
|
VariableTableEntry *var = struct_expr_node->data.symbol_expr.variable;
|
||||||
&struct_expr_node->data.symbol_expr.symbol);
|
|
||||||
assert(var);
|
assert(var);
|
||||||
|
|
||||||
if (var->is_ptr && var->type->id == TypeTableEntryIdPointer) {
|
if (var->is_ptr && var->type->id == TypeTableEntryIdPointer) {
|
||||||
|
|
Loading…
Reference in New Issue