std.zig.Zir: fix declaration traversal

The old logic here had bitrotted, largely because there were some
incorrect `else` cases. This is now implemented correctly for all
current ZIR instructions. This prevents instructions being lost in
incremental updates, which is important for updates to be minimal.
89f02d1c10mlugg committed on 8/17/2024, 10:50:10 PM· committed by Jacob Youngparent84c2ebd
2 files changedLine totals unavailable