aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-07-25 13:07:31 +0100
committergingerBill <bill@gingerbill.org>2021-07-25 13:07:31 +0100
commit6cd06ab95f2d590a2d2e4bd749beb71e285eed45 (patch)
treeb159247c4419a98e3a8787fbcc8a1c6cc1e4cfa7 /src/checker.cpp
parent99080d41f3c02dbc179db8ebb0f215d199f49c89 (diff)
Minor fix
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 0aafc4da4..610ec02eb 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1371,10 +1371,10 @@ void add_entity_and_decl_info(CheckerContext *c, Ast *identifier, Entity *e, Dec
isize queue_count = -1;
bool is_lazy = false;
- // is_lazy = (e->flags & EntityFlag_Lazy) == EntityFlag_Lazy;
- // if (!is_lazy) {
+ is_lazy = (e->flags & EntityFlag_Lazy) == EntityFlag_Lazy;
+ if (!is_lazy) {
queue_count = mpmc_enqueue(&info->entity_queue, e);
- // }
+ }
if (e->token.pos.file_id != 0) {
e->order_in_src = cast(u64)(e->token.pos.file_id)<<32 | u32(e->token.pos.offset);