# spirv: fix invalid code generated by br-with-value · gitcafe/zig

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

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

Visibility: public

Requested revision: 435a5660ce62c9c54f8ac9bf0a325811a6b684e6

Requested commit: 435a5660ce62c9c54f8ac9bf0a325811a6b684e6

Commit: 435a5660ce62c9c54f8ac9bf0a325811a6b684e6

Tree: aa930f3bd62b83023dba214df245bcb8f64cc694

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: fix invalid code generated by br-with-value

The result-id and result-type-id of the OpPhi used to merge the
break values was not properly emitted, as some of the operands
were not written out. This caused an invalid spir-v module.

```

## Parents

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

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