diff options
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/control_flow.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/control_flow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.cpp b/src/shader_recompiler/frontend/maxwell/control_flow.cpp index e766b555b..52be41b84 100644 --- a/src/shader_recompiler/frontend/maxwell/control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/control_flow.cpp | |||
| @@ -354,7 +354,7 @@ void CFG::AnalyzeCondInst(Block* block, FunctionId function_id, Location pc, | |||
| 354 | // Impersonate the visited block with a virtual block | 354 | // Impersonate the visited block with a virtual block |
| 355 | *block = std::move(virtual_block); | 355 | *block = std::move(virtual_block); |
| 356 | // Set the end properties of the conditional instruction | 356 | // Set the end properties of the conditional instruction |
| 357 | conditional_block->end = pc; | 357 | conditional_block->end = pc + 1; |
| 358 | conditional_block->end_class = insn_end_class; | 358 | conditional_block->end_class = insn_end_class; |
| 359 | // Add a label to the instruction after the conditional instruction | 359 | // Add a label to the instruction after the conditional instruction |
| 360 | Block* const endif_block{AddLabel(conditional_block, block->stack, pc + 1, function_id)}; | 360 | Block* const endif_block{AddLabel(conditional_block, block->stack, pc + 1, function_id)}; |