fix(arc): assembler use after free (#125)
This commit is contained in:
parent
5a144a3ba7
commit
f0264876df
@ -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