summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/program.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-05 01:00:34 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:26 +0200
commit9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb (patch)
tree3eb68f4872e39642f6f6c483765174ee77a793f1 /src/shader_recompiler/frontend/maxwell/program.cpp
parentshader: Eliminate orphan blocks more efficiently (diff)
downloadyuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.tar
yuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.tar.gz
yuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.tar.bz2
yuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.tar.lz
yuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.tar.xz
yuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.tar.zst
yuzu-9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/program.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/program.cpp b/src/shader_recompiler/frontend/maxwell/program.cpp
index 05b7591bc..58caa35a1 100644
--- a/src/shader_recompiler/frontend/maxwell/program.cpp
+++ b/src/shader_recompiler/frontend/maxwell/program.cpp
@@ -21,7 +21,7 @@ void RemoveUnreachableBlocks(IR::Program& program) {
if (program.blocks.size() == program.post_order_blocks.size()) {
return;
}
- const auto begin{std::next(program.blocks.begin())};
+ const auto begin{program.blocks.begin() + 1};
const auto end{program.blocks.end()};
const auto pred{[](IR::Block* block) { return block->ImmediatePredecessors().empty(); }};
program.blocks.erase(std::remove_if(begin, end, pred), end);