summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-12 01:40:00 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:27 +0200
commitdfd5341d7117e4299b6c34e8b1feb0e66c230478 (patch)
tree4dab215e2c5ee46b5283dcfa9a18c0a5aafa70f9 /src/shader_recompiler
parentshader: Implement LOP CC (diff)
downloadyuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.tar
yuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.tar.gz
yuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.tar.bz2
yuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.tar.lz
yuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.tar.xz
yuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.tar.zst
yuzu-dfd5341d7117e4299b6c34e8b1feb0e66c230478.zip
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp9
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:
throw NotImplementedException("Statement type {}", stmt.type);
}
}
- if (current_block && continue_block) {
- IR::IREmitter{*current_block}.Branch(continue_block);
+ if (current_block) {
+ IR::IREmitter ir{*current_block};
+ if (continue_block) {
+ ir.Branch(continue_block);
+ } else {
+ ir.Unreachable();
+ }
}
}