# std.zig.Zir: fix declaration traversal · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/89f02d1c107a159dc6433863c7d9167872b4c0c8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 89f02d1c107a159dc6433863c7d9167872b4c0c8

Requested commit: 89f02d1c107a159dc6433863c7d9167872b4c0c8

Commit: 89f02d1c107a159dc6433863c7d9167872b4c0c8

Tree: e5d8f33f6b6e534118c1fec59eff9f05a0cc4a0f

Author: mlugg

Committer: Jacob Young

## Message

```
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.

```

## Parents

- [84c2ebd6c6b16752d8d030d5904d0a525283cbf5](https://git.cafe/gitcafe/zig/commit/84c2ebd6c6b16752d8d030d5904d0a525283cbf5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/89f02d1c107a159dc6433863c7d9167872b4c0c8?format=markdown)
