fix(arc): assembler use after free (#125)
This commit is contained in:
parent
908564a182
commit
c4dcd0165e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user