diff options
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index c6b27acaf3..e79de26516 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -123,9 +123,14 @@ pub const TrackedInst = extern struct { }; }; -pub fn trackZir(ip: *InternPool, gpa: Allocator, file: *Module.File, inst: Zir.Inst.Index) Allocator.Error!TrackedInst.Index { +pub fn trackZir( + ip: *InternPool, + gpa: Allocator, + path_digest: Cache.BinDigest, + inst: Zir.Inst.Index, +) Allocator.Error!TrackedInst.Index { const key: TrackedInst = .{ - .path_digest = file.path_digest, + .path_digest = path_digest, .inst = inst, }; const gop = try ip.tracked_insts.getOrPut(gpa, key); |
