diff options
| author | gingerBill <bill@gingerbill.org> | 2023-11-23 17:31:00 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-11-23 17:31:00 +0000 |
| commit | f809788f75f997ceebbbbfa0aa138f2ae2011e1e (patch) | |
| tree | f4d4f8c47a772af3f860e406115efac66aa4330e /src/checker.cpp | |
| parent | 0888c69b57604b674b6c220c6f60297d98bae58c (diff) | |
Add missing type information for soa structs
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 0366cf05d..6dae99027 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -2211,9 +2211,14 @@ gb_internal void add_min_dep_type_info(Checker *c, Type *t) { Entity *e = entry.value; switch (bt->Struct.soa_kind) { case StructSoa_Dynamic: + add_min_dep_type_info(c, t_type_info_ptr); // append_soa + add_min_dep_type_info(c, t_allocator); /*fallthrough*/ case StructSoa_Slice: + add_min_dep_type_info(c, t_int); + add_min_dep_type_info(c, t_uint); + /*fallthrough*/ case StructSoa_Fixed: add_min_dep_type_info(c, alloc_type_pointer(e->type)); break; |