Make lb_type_info use a procedure to load the global value

This commit is contained in:
gingerBill
2024-02-27 15:45:53 +00:00
parent 5137d12d36
commit 5107bdc06b
5 changed files with 9 additions and 12 deletions

View File

@@ -1755,7 +1755,7 @@ gb_internal lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValu
TypeAndValue tav = type_and_value_of_expr(arg);
if (tav.mode == Addressing_Type) {
Type *t = default_type(type_of_expr(arg));
return lb_type_info(p->module, t);
return lb_type_info(p, t);
}
GB_ASSERT(is_type_typeid(tav.type));