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
This commit is contained in:
ethannicholas 2016-07-07 06:30:48 -07:00 committed by Commit bot
parent 3f58cd0eb8
commit 552882f768

View File

@ -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);