Set visibleOffset of IINC VarExprents

master
Graham 5 years ago
parent fd7a30c710
commit a6b6f0a54b
  1. 2
      src/org/jetbrains/java/decompiler/modules/decompiler/ExprProcessor.java

@ -416,7 +416,7 @@ public class ExprProcessor implements CodeConstants {
pushEx(stack, exprlist, new FunctionExprent(FunctionExprent.FUNCTION_NEG, stack, bytecode_offsets));
break;
case opc_iinc:
VarExprent vevar = new VarExprent(instr.operand(0), VarType.VARTYPE_INT, varProcessor);
VarExprent vevar = new VarExprent(instr.operand(0), VarType.VARTYPE_INT, varProcessor, bytecode_offset);
exprlist.add(new AssignmentExprent(vevar, new FunctionExprent(
instr.operand(1) < 0 ? FunctionExprent.FUNCTION_SUB : FunctionExprent.FUNCTION_ADD, Arrays
.asList(vevar.copy(), new ConstExprent(VarType.VARTYPE_INT, Math.abs(instr.operand(1)), null)),

Loading…
Cancel
Save