Remove implicit fallthrough (#3298)

Fixes #3296

* Make OpReturn its own case fully
This commit is contained in:
alan-baker 2020-04-14 12:57:48 -04:00 committed by GitHub
parent 4956644894
commit 2a2bdbd5d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1090,8 +1090,9 @@ spv_result_t CfgPass(ValidationState_t& _, const Instruction* inst) {
return _.diag(SPV_ERROR_INVALID_CFG, inst)
<< "OpReturn can only be called from a function with void "
<< "return type.";
_.current_function().RegisterBlockEnd(std::vector<uint32_t>(), opcode);
break;
}
// Fallthrough.
case SpvOpKill:
case SpvOpReturnValue:
case SpvOpUnreachable: