diff options
| author | antlilja <liljaanton2001@gmail.com> | 2024-08-02 16:48:36 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-13 12:16:17 -0700 |
| commit | e3b79d65d808700d6308996a52186dcb3ff48b06 (patch) | |
| tree | 2f9cfb6132af939dae78e58c6ffbea874d993da5 /src/Sema.zig | |
| parent | e7b18a7ce69f30c85f21ec8ad6a70211abf5f24b (diff) | |
| download | zig-e3b79d65d808700d6308996a52186dcb3ff48b06.tar.gz zig-e3b79d65d808700d6308996a52186dcb3ff48b06.zip | |
LLVM: Move pt field from Object to NavGen
* LLVM: Pass correct tid to emit
* Store stack trace type in Zcu
* Don't use pt.errorIntType in LLVM backend
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 92f6705e4e..e0bbbb5e5d 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -9916,6 +9916,8 @@ fn finishFunc( // lower this fn type. const unresolved_stack_trace_ty = try sema.getBuiltinType(block.nodeOffset(.zero), .StackTrace); try unresolved_stack_trace_ty.resolveFields(pt); + + if (zcu.stack_trace_type == .none) zcu.stack_trace_type = unresolved_stack_trace_ty.toIntern(); } return Air.internedToRef(if (opt_func_index != .none) opt_func_index else func_ty); |
