From 552882f768b02a2aa20552a765913187851e382b Mon Sep 17 00:00:00 2001 From: ethannicholas Date: Thu, 7 Jul 2016 06:30:48 -0700 Subject: [PATCH] fix for SkSL producing invalid branch after an OpKill GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2129913002 Review-Url: https://codereview.chromium.org/2129913002 --- src/sksl/SkSLSPIRVCodeGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sksl/SkSLSPIRVCodeGenerator.cpp b/src/sksl/SkSLSPIRVCodeGenerator.cpp index 037abc03e1..0a2dab3adf 100644 --- a/src/sksl/SkSLSPIRVCodeGenerator.cpp +++ b/src/sksl/SkSLSPIRVCodeGenerator.cpp @@ -775,6 +775,7 @@ void SPIRVCodeGenerator::writeOpCode(SpvOp_ opCode, int length, std::ostream& ou switch (opCode) { case SpvOpReturn: // fall through case SpvOpReturnValue: // fall through + case SpvOpKill: // fall through case SpvOpBranch: // fall through case SpvOpBranchConditional: ASSERT(fCurrentBlock);