diff options
author | Patrick Mours <pmours@nvidia.com> | 2019-03-25 16:09:15 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2019-03-25 16:09:15 +0300 |
commit | b2651d01e50596adf7f322dc21d63671a7e88c79 (patch) | |
tree | 3bf2a87b248885b939a8b10caa7270a0cdd333cf /spirv_parser.cpp | |
parent | da39a7b02f6e5d1f6fc19fe9102144d87f48f37a (diff) | |
parent | 736703fe3beea590e5ada820e65d12721932fa66 (diff) |
Merge branch master into SPV_NV_ray_tracing
Diffstat (limited to 'spirv_parser.cpp')
-rw-r--r-- | spirv_parser.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/spirv_parser.cpp b/spirv_parser.cpp index 3174f52b..f5ca7dfc 100644 --- a/spirv_parser.cpp +++ b/spirv_parser.cpp @@ -887,9 +887,6 @@ void Parser::parse(const Instruction &instruction) if (!current_block) SPIRV_CROSS_THROW("Trying to end a non-existing block."); - if (current_block->merge == SPIRBlock::MergeNone) - SPIRV_CROSS_THROW("Switch statement is not structured"); - current_block->terminator = SPIRBlock::MultiSelect; current_block->condition = ops[0]; |