aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-17 15:26:55 -0700
committerGitHub <noreply@github.com>2024-03-17 15:26:55 -0700
commit95cb93944060d04ec49e9d2e21ef911ad2b09ccd (patch)
tree5b9839319d7d3258613a7367685c9aab1b6113f3 /src/codegen
parentc11b6adf13fe5c765ec480af5bad6338e6982a9d (diff)
parent436c72e89a6e402b6920ab03207b95d0ca709ee9 (diff)
downloadzig-95cb93944060d04ec49e9d2e21ef911ad2b09ccd.tar.gz
zig-95cb93944060d04ec49e9d2e21ef911ad2b09ccd.zip
Merge pull request #19333 from Vexu/fixes
Miscellaneous error fixes
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index d159a53175..69b810ff60 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -2852,7 +2852,7 @@ pub const Object = struct {
const stack_trace_str = try mod.intern_pool.getOrPutString(mod.gpa, "StackTrace");
// buffer is only used for int_type, `builtin` is a struct.
const builtin_ty = mod.declPtr(builtin_decl).val.toType();
- const builtin_namespace = builtin_ty.getNamespace(mod).?;
+ const builtin_namespace = mod.namespacePtrUnwrap(builtin_ty.getNamespaceIndex(mod)).?;
const stack_trace_decl_index = builtin_namespace.decls.getKeyAdapted(stack_trace_str, Module.DeclAdapter{ .zcu = mod }).?;
const stack_trace_decl = mod.declPtr(stack_trace_decl_index);