fix(arc): assembler use after free (#125)

This commit is contained in:
Xenxo Espasandín 2023-05-19 13:02:07 +02:00 committed by GitHub
parent 908564a182
commit c4dcd0165e

View File

@ -245,8 +245,8 @@ auto assembler::assemble_function(function& func) -> void
if (itr != func.labels.end())
{
func.labels.erase(old_idx);
func.labels.insert({ inst->index, itr->second });
func.labels.erase(old_idx);
}
}