Remove instructions correctly
This commit is contained in:
@@ -73,7 +73,10 @@ public class Instructions
|
|||||||
blocks.remove(block);
|
blocks.remove(block);
|
||||||
|
|
||||||
for (Instruction i : block.instructions)
|
for (Instruction i : block.instructions)
|
||||||
instructions.remove(i);
|
{
|
||||||
|
i.block = null;
|
||||||
|
remove(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildBlocks()
|
public void buildBlocks()
|
||||||
|
|||||||
Reference in New Issue
Block a user