diff --git a/src/link/MachO/dead_strip.zig b/src/link/MachO/dead_strip.zig index 82a174a1a8..563d68cc89 100644 --- a/src/link/MachO/dead_strip.zig +++ b/src/link/MachO/dead_strip.zig @@ -465,8 +465,8 @@ fn prune(zld: *Zld, alive: AtomTable) void { section.last_atom_index = prev_index; } else { assert(section.header.size == 0); - section.first_atom_index = undefined; - section.last_atom_index = undefined; + section.first_atom_index = 0; + section.last_atom_index = 0; } }