# Sema: don't rely on Liveness · gitcafe/zig

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

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

Visibility: public

Requested revision: 0d482775cc58a086009e63b2dc288ed29904529e

Requested commit: 0d482775cc58a086009e63b2dc288ed29904529e

Commit: 0d482775cc58a086009e63b2dc288ed29904529e

Tree: 125c49fcfeefe874f5d144e7683db7230797f238

Author: mlugg

Committer: mlugg

## Message

```
Sema: don't rely on Liveness

We're currently experimenting with backends which effectively do their
own liveness analysis, so this old trick of mine isn't necessarily valid
anymore. However, we can fix that trivially: just make the "nop"
instruction we jam into here have the right type. That way, the leftover
field/element pointer instructions are perfectly valid, but still
unused.

```

## Parents

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

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