diff options
| author | Ali Cheraghi <alichraghi@proton.me> | 2025-04-13 21:24:08 +0330 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-13 12:16:31 -0700 |
| commit | 041bcbd10943bf78e315466b429ae0acfb5cd97a (patch) | |
| tree | 5d788b87754c109423145f6a9a3c0bca6e666f75 /src/codegen | |
| parent | e3b79d65d808700d6308996a52186dcb3ff48b06 (diff) | |
| download | zig-041bcbd10943bf78e315466b429ae0acfb5cd97a.tar.gz zig-041bcbd10943bf78e315466b429ae0acfb5cd97a.zip | |
Do not store StackTrace type
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/llvm.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 656c2eb69d..9965b50ba4 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -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)); } |
