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/check_builtin.cpp | |
| parent | 0888c69b57604b674b6c220c6f60297d98bae58c (diff) | |
Add missing type information for soa structs
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index ce628bc1d..c0061a397 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2088,6 +2088,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As t = default_type(t); add_type_info_type(c, t); + GB_ASSERT(t_type_info_ptr != nullptr); + add_type_info_type(c, t_type_info_ptr); if (is_operand_value(o) && is_type_typeid(t)) { add_package_dependency(c, "runtime", "__type_info_of"); |