mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 22:26:06 +00:00
Fix the infinite loop caused by 6e459fecb794666fb7d1ddc25b93a025eed1bf40. That commit changed the behaviour of a sem::Statement::Block method for sem::BlockStatement instances. Now, the method returns the block itself instead of the outer block which causes an infinite loop when iterating over a chain of blocks. Change-Id: I0eab3f7f166dbe38477bbefd222edb9cf0da53b5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/61060 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Vasyl Teliman <vasniktel@gmail.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>