Skip to content

Commit

Permalink
Fix upstream variable differentiation when no var debug info exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Jun 30, 2024
1 parent 6c069a6 commit 353a89c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ image-io-ext-ico = "3.0.2"
instrument-server = "1.4.1"
jackson = "2.17.1"
jakarta-annotation = "3.0.0"
jasm = "95c74e8b9e"
jasm = "1c366a2fc7"
jlinker = "1.0.7"
jphantom = "1.4.4"
junit = "5.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import dev.xdark.blw.code.Instruction;
import dev.xdark.blw.code.instruction.*;
import jakarta.annotation.Nonnull;
import me.darknet.assembler.helper.Names;
import me.darknet.assembler.helper.Variables;
import me.darknet.assembler.printer.InstructionPrinter;
import me.darknet.assembler.printer.PrintContext;
import org.objectweb.asm.tree.*;
Expand Down Expand Up @@ -55,7 +55,7 @@ public static Instruction convert(@Nonnull AbstractInsnNode insn) {
public static String toString(@Nonnull AbstractInsnNode insn) {
PrintContext<?> ctx = new PrintContext<>("");
InstructionPrinter printer = new InstructionPrinter(ctx.code(),
null, new Names(Collections.emptyMap(), Collections.emptyList()),
null, new Variables(Collections.emptyNavigableMap(), Collections.emptyList()),
Collections.emptyMap()
);

Expand Down

0 comments on commit 353a89c

Please sign in to comment.