Commit 7342ae18 authored by 13.beta2's avatar 13.beta2

core: fix to 4f61ddd4

parent eafe080c
...@@ -82,7 +82,12 @@ public class CodeShrinker extends AbstractVisitor { ...@@ -82,7 +82,12 @@ public class CodeShrinker extends AbstractVisitor {
} }
if (wrap) { if (wrap) {
if (insn.getType() == InsnType.MOVE) { if (insn.getType() == InsnType.MOVE) {
useInsnArg.getParentInsn().setArg(0, insn.getArg(0)); for (int r = 0; r < useInsn.getArgsCount(); r++) {
if (useInsn.getArg(r).getTypedVar() == insn.getResult().getTypedVar()) {
useInsn.setArg(r, insn.getArg(0));
break;
}
}
} else { } else {
useInsnArg.wrapInstruction(insn); useInsnArg.wrapInstruction(insn);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment