refactor(IR): add branch instruction on block exit in if statement

This commit is contained in:
2026-06-01 18:11:38 +02:00
parent 045ce7be59
commit de49674f81
+1
View File
@@ -56,6 +56,7 @@ void ir_generator::visit(const ast::if_statement_node& node) {
push_block(); // else block
node.elze()->accept(*this);
}
m_currentBlock->emplace<ir::branch_instruction>(m_currentFunction->blocks().size());
push_block(); // merge block
}