mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 00:26:00 +00:00
When emitting the if true/false blocks we attempt to set the merge target if the start block hasn't branched. This isn't right, as if the block branched to other control flow, then that isn't the end of the flow chain for that branch. We have to look at the current branch target, and, if it exists, branch that to the if merge block. Bug: tint:1718 Change-Id: Ifcafc4dd12c805efbee9d1dbcbc42c6add8f06a9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107861 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>