summaryrefslogtreecommitdiff
path: root/anim/src/objects.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/src/objects.zig')
-rw-r--r--anim/src/objects.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/anim/src/objects.zig b/anim/src/objects.zig
index dd9ea85..ec40481 100644
--- a/anim/src/objects.zig
+++ b/anim/src/objects.zig
@@ -67,7 +67,7 @@ fn follow(scratch: std.mem.Allocator, rec: *const Recording, m: Recording.Moment
if (std.mem.startsWith(u8, name, "struct ") or std.mem.startsWith(u8, name, "union ")) o.name = name;
return;
};
- const live = (m.allocation(addr) catch null) != null;
+ const live = rec.allocated(m, addr);
found.append(scratch, .{ .addr = addr, .type = t, .slot = slotOf(rec, addr, m), .freed = !live and wasAllocated(rec, addr, m.index), .name = name }) catch {};
}