summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-03-06 11:03:48 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:52 +0200
commita283eda320ea1a4df5e6370528eb1b2ec64e466c (patch)
tree7662d3d4056c31e652c4c17ce5ee68a6182d9ae6 /src/shader_recompiler/frontend
parentMemoryManager: Finish up the initial implementation. (diff)
downloadyuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.tar
yuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.tar.gz
yuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.tar.bz2
yuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.tar.lz
yuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.tar.xz
yuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.tar.zst
yuzu-a283eda320ea1a4df5e6370528eb1b2ec64e466c.zip
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r--src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
index 578bc8c1b..ce42475d4 100644
--- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
+++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
@@ -964,9 +964,9 @@ private:
demote_endif_node.type = Type::EndIf;
demote_endif_node.data.end_if.merge = return_block_it->data.block;
- asl.insert(return_block_it, demote_endif_node);
- asl.insert(return_block_it, demote_node);
- asl.insert(return_block_it, demote_if_node);
+ const auto next_it_1 = asl.insert(return_block_it, demote_endif_node);
+ const auto next_it_2 = asl.insert(next_it_1, demote_node);
+ asl.insert(next_it_2, demote_if_node);
}
ObjectPool<Statement>& stmt_pool;