Do not store StackTrace type

This commit is contained in:
Ali Cheraghi
2025-04-13 21:24:08 +03:30
committed by Andrew Kelley
parent e3b79d65d8
commit 041bcbd109
3 changed files with 7 additions and 6 deletions

View File

@@ -2596,7 +2596,8 @@ pub const Object = struct {
}
if (fn_info.cc == .auto and zcu.comp.config.any_error_tracing) {
const ptr_ty = try pt.ptrType(.{ .child = zcu.stack_trace_type });
const stack_trace_ty = zcu.builtin_decl_values.get(.StackTrace);
const ptr_ty = try pt.ptrType(.{ .child = stack_trace_ty });
debug_param_types.appendAssumeCapacity(try o.lowerDebugType(pt, ptr_ty));
}
@@ -3508,7 +3509,8 @@ pub const Object = struct {
}
if (fn_info.cc == .auto and zcu.comp.config.any_error_tracing) {
const ptr_ty = try pt.ptrType(.{ .child = zcu.stack_trace_type });
const stack_trace_ty = zcu.builtin_decl_values.get(.StackTrace);
const ptr_ty = try pt.ptrType(.{ .child = stack_trace_ty });
try llvm_params.append(o.gpa, try o.lowerType(pt, ptr_ty));
}