InternPool: fix more crashes

This commit is contained in:
Jacob Young
2023-05-26 03:41:35 -04:00
committed by Andrew Kelley
parent 66c4396854
commit f2c716187c
8 changed files with 502 additions and 448 deletions

View File

@@ -2329,7 +2329,7 @@ pub const Object = struct {
try param_di_types.append(try o.lowerDebugType(ptr_ty, .full));
}
for (fn_info.param_types) |param_ty| {
for (mod.typeToFunc(ty).?.param_types) |param_ty| {
if (!param_ty.toType().hasRuntimeBitsIgnoreComptime(mod)) continue;
if (isByRef(param_ty.toType(), mod)) {