mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 22:01:47 -04:00
Add -internal-global-entity-graph; Fix union type inference bug
This commit is contained in:
1 parent
ac5087776f
commit
b06c5ffa70
5 files changed
+28
No files matched your search
@@ -2137,6 +2137,7 @@ gb_internal void check_entity_decl(CheckerContext *ctx, Entity *e, DeclInfo *d,
|
||||
if (e->state == EntityState_Resolved) {
|
||||
return;
|
||||
}
|
||||
GlobalEntityTimingFrame timing_frame = global_entity_timing_begin(e);
|
||||
if (e->flags & EntityFlag_Lazy) {
|
||||
mutex_lock(&ctx->info->lazy_mutex);
|
||||
}
|
||||
@@ -2222,6 +2223,7 @@ gb_internal void check_entity_decl(CheckerContext *ctx, Entity *e, DeclInfo *d,
|
||||
|
||||
}
|
||||
end:;
|
||||
global_entity_timing_end(timing_frame, e);
|
||||
// NOTE(bill): Add it to the list of checked entities
|
||||
if (e->flags & EntityFlag_Lazy) {
|
||||
array_add(&ctx->info->entities, e);
|
||||
|
||||
Reference in new issue
Block a user