Add extra asserts

This commit is contained in:
gingerBill
2024-04-28 14:45:59 +01:00
parent 950fd2d5ce
commit 30cfdd73b0

View File

@@ -2925,6 +2925,8 @@ gb_internal void init_core_type_info(Checker *c) {
return;
}
Entity *type_info_entity = find_core_entity(c, str_lit("Type_Info"));
GB_ASSERT(type_info_entity != nullptr);
GB_ASSERT(type_info_entity->type != nullptr);
t_type_info = type_info_entity->type;
t_type_info_ptr = alloc_type_pointer(t_type_info);