mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 10:45:36 +00:00
If a definition occurs in the first block of an IfSelection or SwitchSelection, then it should count as belonging to the scope of the parent of that if or switch selection. This prevents some bad hoisting decisions. Bug: tint:3, tint:213 Change-Id: I89df5e8cbc163577e19e78c2bf393eb1eec4a0aa Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/27660 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: David Neto <dneto@google.com>