commit | 549c6b8739c0a962830a6ee6f91bf4370fc06fc0 | [log] [tgz] |
---|---|---|
author | Ethan Nicholas <ethannicholas@google.com> | Fri Jun 25 12:31:44 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Jun 28 19:15:16 2021 +0000 |
tree | 6b9347de93d453f000e6243f4ae1245a8714a33c | |
parent | 1c39ecab1e3cf7939707976359bde0d0135ddb33 [diff] [blame] |
Added Poison values to SkSL to improve DSL error handling This also tightens up the rules around releasing DSL objects. Bug: skia:12133 Change-Id: I11a6d8fbcec58374f7b5ed5ced1c5c112e2b7cc7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/421323 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/SkSLDehydrator.cpp b/src/sksl/SkSLDehydrator.cpp index 4067d77..9a29a43 100644 --- a/src/sksl/SkSLDehydrator.cpp +++ b/src/sksl/SkSLDehydrator.cpp
@@ -429,6 +429,7 @@ break; } case Expression::Kind::kFunctionReference: + case Expression::Kind::kPoison: case Expression::Kind::kTypeReference: SkDEBUGFAIL("this expression shouldn't appear in finished code"); break;