21a59d650d
Previously, the code which calculated Constructor constant values assumed that a constant-value PrefixExpression would always have an operand of Constructor. It turns out that another valid case is multiple PrefixExpressions nested within each other (representing repeated negation). Updated the code to work regardless of the type of the prefix operand. Change-Id: Ic9bf54725ae59330ac817bc4ec7a64def384ab54 Bug: oss-fuzz:27663 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/337177 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
2 lines
56 B
Plaintext
2 lines
56 B
Plaintext
void main() { sk_FragColor = float4(1) / - -half4(0); }
|