mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
possibly fix init_core_type_info race condition
This commit is contained in:
@@ -2991,6 +2991,9 @@ gb_internal void init_core_type_info(Checker *c) {
|
||||
}
|
||||
Entity *type_info_entity = find_core_entity(c, str_lit("Type_Info"));
|
||||
GB_ASSERT(type_info_entity != nullptr);
|
||||
if (type_info_entity->type == nullptr) {
|
||||
check_single_global_entity(c, type_info_entity, type_info_entity->decl_info);
|
||||
}
|
||||
GB_ASSERT(type_info_entity->type != nullptr);
|
||||
|
||||
t_type_info = type_info_entity->type;
|
||||
|
||||
Reference in New Issue
Block a user