diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 931df75d..c8d63042 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -9393,6 +9393,8 @@ void CompilerGLSL::propagate_loop_dominators(const SPIRBlock &block) set_dominator(block.false_block, dominator); if (block.next_block) set_dominator(block.next_block, dominator); + if (block.default_block) + set_dominator(block.default_block, dominator); for (auto &c : block.cases) set_dominator(c.block, dominator);