Skip to content

Commit

Permalink
fix: duplicate result arg on instruction copy
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Oct 30, 2019
1 parent 1b60c1d commit 11db454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jadx-core/src/main/java/jadx/core/dex/nodes/InsnNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ public boolean isDeepEquals(InsnNode other) {
}

protected final <T extends InsnNode> T copyCommonParams(T copy) {
copy.setResult(result);
if (result != null) {
copy.setResult(result.duplicate());
}
if (copy.getArgsCount() == 0) {
for (InsnArg arg : this.getArguments()) {
if (arg.isInsnWrap()) {
Expand Down

0 comments on commit 11db454

Please sign in to comment.