# AstGen: fix branch on undefined · gitcafe/zig

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

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

Visibility: public

Requested revision: da878dc0776b56c1e2c251857a40415a35e9535a

Requested commit: da878dc0776b56c1e2c251857a40415a35e9535a

Commit: da878dc0776b56c1e2c251857a40415a35e9535a

Tree: e575289a4a6145619f378987306d1913b7a94d84

Author: Jacob Young

Committer: Jacob Young

## Message

```
AstGen: fix branch on undefined

`isAlwaysVoid` was being called with the undefined tag added by
`addOne`, causing non-deterministic behavior failures with release
builds of the compiler.  Prevents the following random failure:

    test/behavior/defer.zig:120:40: error: expected type 'error{One}', found 'void'

```

## Parents

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

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