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

@@ -252,7 +252,7 @@ public class DeadCodeHelper {
Instruction instr = block.getLastInstruction();
if (instr != null && instr.opcode == CodeConstants.opc_goto) {
block.getSeq().removeInstruction(block.getSeq().length() - 1);
block.getSeq().removeLast();
}
}