mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-10 13:21:37 -07:00
Fix global maps and initialize the preload types before
This commit is contained in:
@@ -1132,6 +1132,12 @@ void check_map_type(Checker *c, Type *type, AstNode *node) {
|
||||
gbAllocator a = c->allocator;
|
||||
|
||||
{
|
||||
// NOTE(bill): The preload types may have not been set yet
|
||||
if (t_map_key == NULL) {
|
||||
init_preload(c);
|
||||
}
|
||||
GB_ASSERT(t_map_key != NULL);
|
||||
|
||||
Type *entry_type = make_type_struct(a);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user