mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-03 23:28:20 +00:00
Fix minimal dependency generation for polymorphic structs (related to issue #121)
This commit is contained in:
@@ -4867,8 +4867,10 @@ ExprKind check_call_expr(Checker *c, Operand *operand, AstNode *call) {
|
||||
AstNode *s = ident->SelectorExpr.selector;
|
||||
ident = s;
|
||||
}
|
||||
add_entity_use(c, ident, entity_of_ident(&c->info, ident));
|
||||
add_type_and_value(&c->info, call, Addressing_Type, operand->type, empty_exact_value);
|
||||
Type *ot = operand->type; GB_ASSERT(ot->kind == Type_Named);
|
||||
Entity *e = ot->Named.type_name;
|
||||
add_entity_use(c, ident, e);
|
||||
add_type_and_value(&c->info, call, Addressing_Type, ot, empty_exact_value);
|
||||
} else {
|
||||
operand->mode = Addressing_Invalid;
|
||||
operand->type = t_invalid;
|
||||
|
||||
Reference in New Issue
Block a user