6e6ae1b762
Previously, this code assumed that IndexExpression::Convert had done range checking and that it was safe to access the base expression at the passed-in index. The inliner violates this assumption, because it can replace unknowns (where out-of-range access is undefined but non- fatal) with knowns (where out-of-range access is forbidden). We now do range-checking inside IndexExpression::Make and report the error cleanly, instead of asserting inside of Swizzle::Make due to an invalid component index. Change-Id: If0f31b1f694bcc2a875d124f70be311d6634c77b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/469535 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> |
||
---|---|---|
.. | ||
blend | ||
errors | ||
es2_conformance | ||
folding | ||
glsl | ||
inliner | ||
intrinsics | ||
metal | ||
runtime | ||
runtime_errors | ||
shared | ||
spirv | ||
workarounds | ||
README.txt | ||
update_fuzzer.py |
This directory contains source files for testing skslc compilation. The compiled output files are in the /tests/sksl/ directory.