From 065a2af699dc617f7a7dbd909e6a58e460863fe1 Mon Sep 17 00:00:00 2001 From: CHatingPython Date: Sat, 13 Jun 2026 12:20:20 +0200 Subject: [PATCH] refactor(furc/ssa): fix typo Refs: #2 --- furc/src/front/ssa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/furc/src/front/ssa.cpp b/furc/src/front/ssa.cpp index fc991ad..91c817d 100644 --- a/furc/src/front/ssa.cpp +++ b/furc/src/front/ssa.cpp @@ -191,7 +191,7 @@ void ssa::optimize(const std::unique_ptr& 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;