finish inductive variables

This commit is contained in:
2025-04-22 16:14:29 +03:00
parent cd209a587a
commit 6a84171382
9 changed files with 431 additions and 144 deletions

View File

@@ -66,7 +66,7 @@ void BBlock::addInstructionBeforeInstruction(IR_Block* item, Instruction* instru
{
for (auto it = instructions.begin(); it != instructions.end(); ++it) {
if ((*it)->getInstruction() == instruction) {
instructions.insert(instructions.begin(), item);
instructions.insert(it, item);
item->setBasicBlock(this);
return;
}