diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-10 10:04:33 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-10 11:20:08 -0400 |
| commit | 3d2dfbe8289c2ecb45e1ba1fe79c4d7e21dd26c3 (patch) | |
| tree | 921e81c14c12e84cf4970a299b37d2a659c63c2f /src/codegen | |
| parent | f93a10f664fbbb67aeda031583a790e2a842fb01 (diff) | |
| download | zig-3d2dfbe8289c2ecb45e1ba1fe79c4d7e21dd26c3.tar.gz zig-3d2dfbe8289c2ecb45e1ba1fe79c4d7e21dd26c3.zip | |
InternPool: add `FileIndex` to `*File` mapping
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 40110993b9..7152a55d46 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -2811,7 +2811,7 @@ pub const Object = struct { const zcu = pt.zcu; const std_mod = zcu.std_mod; - const std_file_imported = zcu.importPkg(std_mod) catch unreachable; + const std_file_imported = pt.importPkg(std_mod) catch unreachable; const builtin_str = try zcu.intern_pool.getOrPutString(zcu.gpa, pt.tid, "builtin", .no_embedded_nulls); const std_file_root_decl = zcu.fileRootDecl(std_file_imported.file_index); |
