From 3f09e3241055b9ad55cdf4bef230050a392a2838 Mon Sep 17 00:00:00 2001 From: Raul Ramirez Date: Fri, 16 Aug 2024 10:23:56 -0600 Subject: [PATCH] Update control_flow_graph.cpp added comment back in. Removed white space --- src/shader_recompiler/frontend/control_flow_graph.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shader_recompiler/frontend/control_flow_graph.cpp b/src/shader_recompiler/frontend/control_flow_graph.cpp index 09c4b07b7..b38c6a122 100644 --- a/src/shader_recompiler/frontend/control_flow_graph.cpp +++ b/src/shader_recompiler/frontend/control_flow_graph.cpp @@ -108,8 +108,10 @@ void CFG::EmitBlocks() { // TODO: Investigate how to make sure this does not go out of bounds. // Is inst_list always the size of labels? const size_t end_index = get_index(end) - 1; - const auto& end_inst = inst_list[end_index]; - + const auto& end_inst = inst_list[end_index]; + + // Insert block between the labels using the last instruction + // as an indicator for branching type. Block* block = block_pool.Create(); block->begin = start; block->end = end;