refactor(furc/ssa): fix typo

Refs: #2
This commit is contained in:
2026-06-13 12:20:20 +02:00
parent 767970c69b
commit 065a2af699
+1 -1
View File
@@ -191,7 +191,7 @@ void ssa::optimize(const std::unique_ptr<furlang::ir::function>& func) {
}
}
if (instr->has_destination() || instr->destination().type() == furlang::ir::operand_t::Register) {
if (instr->has_destination() && instr->destination().type() == furlang::ir::operand_t::Register) {
auto orig = instr->destination().reg();
std::uint32_t newVer = regVers[orig]++;
instr->destination().reg().ver = newVer;