# AstGen: coerce break operands of labeled blocks · gitcafe/zig

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

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

Visibility: public

Requested revision: 4dd65316b7d5756809394710078718b3ee536a9b

Requested commit: 4dd65316b7d5756809394710078718b3ee536a9b

Commit: 4dd65316b7d5756809394710078718b3ee536a9b

Tree: e058370c2dc1a01693134a15a5fd8ca6cb7b550d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: coerce break operands of labeled blocks

Similar code was already in place for conditional branches. This updates
AstGen to do the same for labeled blocks. It takes advantage of the
`store_to_block_ptr` instructions by mutating them in place to become
`as` instructions, coercing the break operands before they are returned
from the block.

```

## Parents

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

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