# update Liveness to detect that safety checks do not modify memory · gitcafe/zig

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

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

Visibility: public

Requested revision: f10b9e8fd72aae33b127c18e3f8a64a4f56b1b69

Requested commit: f10b9e8fd72aae33b127c18e3f8a64a4f56b1b69

Commit: f10b9e8fd72aae33b127c18e3f8a64a4f56b1b69

Tree: e677f852c23f7123282d184ddb67181097588619

Author: Xavier Bouchoux

Committer: Andrew Kelley

## Message

````
update Liveness to detect that safety checks do not modify memory

followup to [25d3713b07a100d8fdb349317db97fd9d0c1e366]
Resolves #12215

Previous code didn't account for the extra unreach() that now exists in the air:

```
 %29!= block(void, {
    %30!= cond_br(%22!, {
      %31!= br(%29, @Air.Inst.Ref.void_value)
    }, {
      %2! %15!
      %27!= call(%26, [%19!, %21])
      %28!= unreach()
    })
  } %22!)
```

````

## Parents

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

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