diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-03-17 15:26:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-17 15:26:55 -0700 |
| commit | 95cb93944060d04ec49e9d2e21ef911ad2b09ccd (patch) | |
| tree | 5b9839319d7d3258613a7367685c9aab1b6113f3 /src/codegen | |
| parent | c11b6adf13fe5c765ec480af5bad6338e6982a9d (diff) | |
| parent | 436c72e89a6e402b6920ab03207b95d0ca709ee9 (diff) | |
| download | zig-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.zig | 2 |
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); |
