Skip to content

Commit

Permalink
use instr directly when inserting the mov
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyao233 committed Nov 8, 2024
1 parent ff49caa commit 63b54e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/arch/riscv64/mangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,7 @@ mangle_rel_addr(dcontext_t *dcontext, instrlist_t *ilist, instr_t *instr,
ASSERT(opnd_is_reg(dst));
ASSERT(opnd_is_rel_addr(instr_get_src(instr, 0)));

insert_mov_immed_ptrsz(dcontext, (ptr_int_t)tgt, dst, ilist, instr_get_next(instr),
NULL, NULL);
insert_mov_immed_ptrsz(dcontext, (ptr_int_t)tgt, dst, ilist, instr, NULL, NULL);

instrlist_remove(ilist, instr);
instr_destroy(dcontext, instr);
Expand Down

0 comments on commit 63b54e5

Please sign in to comment.