# AstGen: short-circuit rvalue\(\) if code is unreachable · gitcafe/zig

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

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

Visibility: public

Requested revision: 7b863aa8ac6d48092c8d5b3c8713d9f8a9cfbdf3

Requested commit: 7b863aa8ac6d48092c8d5b3c8713d9f8a9cfbdf3

Commit: 7b863aa8ac6d48092c8d5b3c8713d9f8a9cfbdf3

Tree: 31d86d703f717419c5224f129c4bfc2788ce96ec

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
AstGen: short-circuit rvalue() if code is unreachable

This avoids generating instructions which will never be reached.

```

## Parents

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

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