aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorantlilja <liljaanton2001@gmail.com>2024-08-02 16:48:36 +0200
committerAndrew Kelley <andrew@ziglang.org>2025-07-13 12:16:17 -0700
commite3b79d65d808700d6308996a52186dcb3ff48b06 (patch)
tree2f9cfb6132af939dae78e58c6ffbea874d993da5 /src/Sema.zig
parente7b18a7ce69f30c85f21ec8ad6a70211abf5f24b (diff)
downloadzig-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.zig2
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);