# astgen: fill result location with \`void\` value if no other value · gitcafe/zig

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

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

Visibility: public

Requested revision: ecc0108cea97772b6e921b36d8fdc8f90d5fc6cb

Requested commit: ecc0108cea97772b6e921b36d8fdc8f90d5fc6cb

Commit: ecc0108cea97772b6e921b36d8fdc8f90d5fc6cb

Tree: 8b31f57cd8887de57430eb44d2c12f57fe5dd25c

Author: John Schmidt

Committer: Veikka Tuominen

## Message

```
astgen: fill result location with `void` value if no other value

With this change, `break` and `break :blk` will fill the result location
with `.void_value`, ensuring that the value will be type checked.
The same will happen for a for loop that contains no `break`s in it's body.

Closes https://github.com/ziglang/zig/issues/14686.

```

## Parents

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

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