Fix fuzzer-discovered error with repeated assignment.
The fuzzer discovered a subtle bug with our recent optimization,
which fused variable declarations with their initialization.
Specifically, the statement pair `int x = 0; x = x = 1;` is valid
(though questionable) SkSL. However, `int x = x = 1;` is not. We
now properly detect this case and leave it as-is.
Bug: oss-fuzz:58567
Change-Id: I5b0b6e96b39956d98b7c04ddb8ce23c8201601bd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/690817
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
9 files changed