提交 7342ae18 编写于 作者: 1 13.beta2

core: fix to 4f61ddd4

上级 eafe080c
......@@ -82,7 +82,12 @@ public class CodeShrinker extends AbstractVisitor {
}
if (wrap) {
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 {
useInsnArg.wrapInstruction(insn);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册