Add missing type information for soa structs

This commit is contained in:
gingerBill
2023-11-23 17:31:00 +00:00
parent 0888c69b57
commit f809788f75
4 changed files with 19 additions and 1 deletions

View File

@@ -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");