# astgen: do not discard result location in for/while loops · gitcafe/zig

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

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

Visibility: public

Requested revision: e41bc640c6c4277385236d3dd90b4db566550509

Requested commit: e41bc640c6c4277385236d3dd90b4db566550509

Commit: e41bc640c6c4277385236d3dd90b4db566550509

Tree: c3ae2d90492cac331e3546a9ffc5115faf078333

Author: John Schmidt

Committer: Andrew Kelley

## Message

```
astgen: do not discard result location in for/while loops

If we use the discard result location any break with a value will be
ignored and not checked for usage.

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

```

## Parents

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

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