From fe87bae7e39657c96015aa7f3c7a35a0b01da1ad Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 18 Dec 2023 17:10:28 -0700 Subject: frontend: fix handling of special builtin module it's allocated differently and imported differently --- src/codegen.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/codegen.zig') 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; -- cgit v1.2.3