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_type.cpp | |
| parent | 4ac1218bf895a9f933f476bd3c36fe24dc7b9a88 (diff) | |
Move atomic intrinsics to the new built-in package intrinsics
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index f1c9875a1..f38826a25 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2096,7 +2096,7 @@ void init_map_entry_type(Type *type) { } */ Ast *dummy_node = alloc_ast_node(nullptr, Ast_Invalid); - Scope *s = create_scope(builtin_scope, a); + Scope *s = create_scope(builtin_pkg->scope, a); auto fields = array_make<Entity *>(a, 0, 3); array_add(&fields, alloc_entity_field(s, make_token_ident(str_lit("key")), t_map_key, false, 0, EntityState_Resolved)); @@ -2131,7 +2131,7 @@ void init_map_internal_types(Type *type) { */ gbAllocator a = heap_allocator(); Ast *dummy_node = alloc_ast_node(nullptr, Ast_Invalid); - Scope *s = create_scope(builtin_scope, a); + Scope *s = create_scope(builtin_pkg->scope, a); Type *hashes_type = alloc_type_slice(t_int); Type *entries_type = alloc_type_dynamic_array(type->Map.entry_type); |