decompiler: removeLast helper to avoid possible errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user