# stage2: fix contents hash computation · gitcafe/zig

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

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

Visibility: public

Requested revision: 17067e0e6b6d28623b47b639853abc69a83b620a

Requested commit: 17067e0e6b6d28623b47b639853abc69a83b620a

Commit: 17067e0e6b6d28623b47b639853abc69a83b620a

Tree: 6699eaf7624cf486158d4b0481b617c3b3320ae9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix contents hash computation

during an incremental update change detection,
the function call to get the old contents hash took place
after mangling the old ZIR index, making it access the wrong
array index.

```

## Parents

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

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