aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-11 18:10:27 +0000
committergingerBill <bill@gingerbill.org>2023-01-11 18:10:27 +0000
commit7124d541a132fc94b2c66c54bd73eb0d103ce3d3 (patch)
treef0eb8f42e5ebc9ec6ac1ff332e09754a804c9a86 /src/check_type.cpp
parent3c7e45a46fc68426641047a540d4cb50b0fbd9c8 (diff)
General optimizations
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index fd4e965d4..0863af967 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2405,7 +2405,8 @@ gb_internal Type *make_soa_struct_internal(CheckerContext *ctx, Ast *array_typ_e
}
soa_struct->Struct.soa_count = cast(i32)count;
- scope = create_scope(ctx->info, ctx->scope, 8);
+ scope = create_scope(ctx->info, ctx->scope);
+ string_map_init(&scope->elements, 8);
soa_struct->Struct.scope = scope;
String params_xyzw[4] = {