diff options
| author | gingerBill <bill@gingerbill.org> | 2018-10-20 10:44:02 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-10-20 10:44:02 +0100 |
| commit | 3742d9e7e9fbb02058c7da9030a0abb023e7b244 (patch) | |
| tree | 9f4af507d413edc9705ac16579f6715673e0ecfb /src/check_stmt.cpp | |
| parent | 4ac1218bf895a9f933f476bd3c36fe24dc7b9a88 (diff) | |
Move atomic intrinsics to the new built-in package intrinsics
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 0ae83f1ed..7854081aa 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1484,7 +1484,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } if (entity == nullptr) { - entity = alloc_entity_dummy_variable(builtin_scope, ast_token(name)); + entity = alloc_entity_dummy_variable(builtin_pkg->scope, ast_token(name)); } entities[entity_count++] = entity; @@ -1663,7 +1663,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } } if (entity == nullptr) { - entity = alloc_entity_dummy_variable(builtin_scope, ast_token(name)); + entity = alloc_entity_dummy_variable(builtin_pkg->scope, ast_token(name)); } entity->parent_proc_decl = ctx->curr_proc_decl; entities[entity_count++] = entity; |