diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-18 17:10:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:20 -0700 |
| commit | fe87bae7e39657c96015aa7f3c7a35a0b01da1ad (patch) | |
| tree | 1f5bfe4101613eebe88713d0ba7d8cba3c0f8b79 /src/codegen.zig | |
| parent | 90cc408c1479e5e7ccd82369253d19f79d2812a5 (diff) | |
| download | zig-fe87bae7e39657c96015aa7f3c7a35a0b01da1ad.tar.gz zig-fe87bae7e39657c96015aa7f3c7a35a0b01da1ad.zip | |
frontend: fix handling of special builtin module
it's allocated differently and imported differently
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index 65af8236de..1ac8626a79 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -119,10 +119,7 @@ pub fn generateLazySymbol( const comp = bin_file.comp; const zcu = comp.module.?; - const decl_index = lazy_sym.ty.getOwnerDecl(zcu); - const decl = zcu.declPtr(decl_index); - const namespace = zcu.namespacePtr(decl.src_namespace); - const target = namespace.file_scope.mod.resolved_target.result; + const target = comp.root_mod.resolved_target.result; const endian = target.cpu.arch.endian(); const gpa = comp.gpa; |
