diff options
| author | David Rubin <daviru007@icloud.com> | 2024-08-11 22:03:50 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-08-25 15:17:40 -0700 |
| commit | 1c1feba08edf1ded85af0ec003939a7756f4ab0b (patch) | |
| tree | 5bf36c67a1271f74e5e2bbec44ae9f737a91217a /src/Compilation.zig | |
| parent | 9868ed44b31483b21236623e16e5a73b8c026a47 (diff) | |
| download | zig-1c1feba08edf1ded85af0ec003939a7756f4ab0b.tar.gz zig-1c1feba08edf1ded85af0ec003939a7756f4ab0b.zip | |
remove `mod` aliases for Zcus
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index e43f2bd7b4..e4c47e4116 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4350,8 +4350,8 @@ fn workerCheckEmbedFile(comp: *Compilation, embed_file: *Zcu.EmbedFile) void { } fn detectEmbedFileUpdate(comp: *Compilation, embed_file: *Zcu.EmbedFile) !void { - const mod = comp.zcu.?; - const ip = &mod.intern_pool; + const zcu = comp.zcu.?; + const ip = &zcu.intern_pool; var file = try embed_file.owner.root.openFile(embed_file.sub_file_path.toSlice(ip), .{}); defer file.close(); @@ -4663,10 +4663,10 @@ fn reportRetryableEmbedFileError( embed_file: *Zcu.EmbedFile, err: anyerror, ) error{OutOfMemory}!void { - const mod = comp.zcu.?; - const gpa = mod.gpa; + const zcu = comp.zcu.?; + const gpa = zcu.gpa; const src_loc = embed_file.src_loc; - const ip = &mod.intern_pool; + const ip = &zcu.intern_pool; const err_msg = try Zcu.ErrorMsg.create(gpa, src_loc, "unable to load '{}/{s}': {s}", .{ embed_file.owner.root, embed_file.sub_file_path.toSlice(ip), @@ -4678,7 +4678,7 @@ fn reportRetryableEmbedFileError( { comp.mutex.lock(); defer comp.mutex.unlock(); - try mod.failed_embed_files.putNoClobber(gpa, embed_file, err_msg); + try zcu.failed_embed_files.putNoClobber(gpa, embed_file, err_msg); } } |
