Update control_flow_graph.cpp

added comment back in. Removed white space
This commit is contained in:
Raul Ramirez 2024-08-16 10:23:56 -06:00 committed by GitHub
parent 116119e8ef
commit 3f09e32410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;