mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 00:56:05 +00:00
The LHS should be wrapped in parentheses if it has lower precedence than the access. This fixes issues with pointer dereferences followed by array accesses, where we were previously generating *a[i]. Change-Id: I639f94b642f32119350b0a0d23f4ff2a5d6c3c25 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/52843 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>