From 116119e8ef0c216bf4286ca2df098e9714028b90 Mon Sep 17 00:00:00 2001 From: Raul Ramirez Date: Fri, 16 Aug 2024 10:22:05 -0600 Subject: [PATCH] Update control_flow_graph.cpp typo in get_index --- src/shader_recompiler/frontend/control_flow_graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shader_recompiler/frontend/control_flow_graph.cpp b/src/shader_recompiler/frontend/control_flow_graph.cpp index dd02ecec9..09c4b07b7 100644 --- a/src/shader_recompiler/frontend/control_flow_graph.cpp +++ b/src/shader_recompiler/frontend/control_flow_graph.cpp @@ -107,13 +107,13 @@ 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 = getindex(end) - 1; + const size_t end_index = get_index(end) - 1; const auto& end_inst = inst_list[end_index]; Block* block = block_pool.Create(); block->begin = start; block->end = end; - block->begin_index = getindex(start); + block->begin_index = get_index(start); block->end_index = end_index; block->end_inst = end_inst; block->cond = MakeCondition(end_inst.opcode);