diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-17 22:07:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-17 22:07:27 +0100 |
| commit | a4e3201113311b338c563d169cac59aaf9cf6335 (patch) | |
| tree | 22210259a11b9be9f3f62d682a1f94a0be18fb7e /src/check_stmt.cpp | |
| parent | a99cc2fd70d31b3a0b5a6881d4b5cb431f911354 (diff) | |
Minor cleanup for builtin scope/pkg
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 60859a90d..3ce7373b6 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1483,7 +1483,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } if (entity == nullptr) { - entity = alloc_entity_dummy_variable(universal_scope, ast_token(name)); + entity = alloc_entity_dummy_variable(builtin_scope, ast_token(name)); } entities[entity_count++] = entity; @@ -1669,7 +1669,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { } } if (entity == nullptr) { - entity = alloc_entity_dummy_variable(universal_scope, ast_token(name)); + entity = alloc_entity_dummy_variable(builtin_scope, ast_token(name)); } entity->parent_proc_decl = ctx->curr_proc_decl; entities[entity_count++] = entity; |