Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guard traversal of certain kinds of mid-optimization IfStatement
When the test expression has a side-effect, but both the true and else blocks are empty, the optimizer moves the test out to a standalone ExpressionStatement. Updating the usage in that situation involves traversing an IfStatement with no test. Bug: oss-fuzz:26666 Change-Id: I2fb4004f2401784402040345df49a7d42e4aab5e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/329960 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
- Loading branch information