From 1c1feba08edf1ded85af0ec003939a7756f4ab0b Mon Sep 17 00:00:00 2001 From: David Rubin Date: Sun, 11 Aug 2024 22:03:50 -0700 Subject: remove `mod` aliases for Zcus --- src/Compilation.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Compilation.zig') 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); } } -- cgit v1.2.3