summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-03-27 02:54:32 -0300
committerGravatar ameerj2021-07-22 21:51:24 -0400
commita806b29cb9bb48c4a9628700946231c9150463b5 (patch)
tree334b292d73c9404a84d0bc719df4bea45e61530f /src/shader_recompiler/frontend/ir
parentshader: Fix TXQ (diff)
downloadyuzu-a806b29cb9bb48c4a9628700946231c9150463b5.tar.gz
yuzu-a806b29cb9bb48c4a9628700946231c9150463b5.tar.xz
yuzu-a806b29cb9bb48c4a9628700946231c9150463b5.zip
shader: Fix structured control flow on KIL instructions
This could potentially leave unvisited blocks, leading to illegal phi nodes.
Diffstat (limited to 'src/shader_recompiler/frontend/ir')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index f281c023f..82613f607 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -83,6 +83,7 @@ void IREmitter::SelectionMerge(Block* merge_block) {
83} 83}
84 84
85void IREmitter::Return() { 85void IREmitter::Return() {
86 block->SetReturn();
86 Inst(Opcode::Return); 87 Inst(Opcode::Return);
87} 88}
88 89