Fix fuzzer-discovered error with void variables.
The fuzzer created some void-typed variables and then triggered the
switch variable-hoisting code. The binary-expression code asserts
that assignments are valid ("We should have detected non-assignable
assignment expressions in Convert") and this expectation is
generally true. However, it was not true for void-typed and
invalid-typed variables; in these cases we would emit an error,
but emit the var-decl IR even though it was known to be invalid.
We no longer emit these invalid declarations into the IR.
Bug: oss-fuzz:59906
Change-Id: I7e9e11db108d8ae6f5ed9b8e555254943925ace2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/713637
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
16 files changed