mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-01 23:12:35 +00:00
Update control_flow_graph.cpp
typo in get_index
This commit is contained in:
parent
a374e7c583
commit
116119e8ef
@ -107,13 +107,13 @@ void CFG::EmitBlocks() {
|
|||||||
|
|
||||||
// TODO: Investigate how to make sure this does not go out of bounds.
|
// TODO: Investigate how to make sure this does not go out of bounds.
|
||||||
// Is inst_list always the size of labels?
|
// 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];
|
const auto& end_inst = inst_list[end_index];
|
||||||
|
|
||||||
Block* block = block_pool.Create();
|
Block* block = block_pool.Create();
|
||||||
block->begin = start;
|
block->begin = start;
|
||||||
block->end = end;
|
block->end = end;
|
||||||
block->begin_index = getindex(start);
|
block->begin_index = get_index(start);
|
||||||
block->end_index = end_index;
|
block->end_index = end_index;
|
||||||
block->end_inst = end_inst;
|
block->end_inst = end_inst;
|
||||||
block->cond = MakeCondition(end_inst.opcode);
|
block->cond = MakeCondition(end_inst.opcode);
|
||||||
|
Loading…
Reference in New Issue
Block a user