diff options
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp index 02cef2645..e63e25aa6 100644 --- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | |||
| @@ -816,8 +816,13 @@ private: | |||
| 816 | throw NotImplementedException("Statement type {}", stmt.type); | 816 | throw NotImplementedException("Statement type {}", stmt.type); |
| 817 | } | 817 | } |
| 818 | } | 818 | } |
| 819 | if (current_block && continue_block) { | 819 | if (current_block) { |
| 820 | IR::IREmitter{*current_block}.Branch(continue_block); | 820 | IR::IREmitter ir{*current_block}; |
| 821 | if (continue_block) { | ||
| 822 | ir.Branch(continue_block); | ||
| 823 | } else { | ||
| 824 | ir.Unreachable(); | ||
| 825 | } | ||
| 821 | } | 826 | } |
| 822 | } | 827 | } |
| 823 | 828 | ||