decompiler: removeLast helper to avoid possible errors

This commit is contained in:
Egor.Ushakov
2015-03-25 19:27:51 +03:00
parent 5770d25e59
commit ce31439c20
3 changed files with 11 additions and 5 deletions

View File

@@ -81,6 +81,12 @@ public abstract class InstructionSequence {
collinstr.remove(index);
}
public void removeLast() {
if (!collinstr.isEmpty()) {
collinstr.remove(collinstr.size() - 1);
}
}
public Instruction getCurrentInstr() {
return collinstr.get(pointer);
}