mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-24 16:51:06 +00:00
Remove implicit fallthrough (#3298)
Fixes #3296 * Make OpReturn its own case fully
This commit is contained in:
parent
4956644894
commit
2a2bdbd5d7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user