Skip to content

Commit

Permalink
Move freeing %r0 to a more consistent place
Browse files Browse the repository at this point in the history
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
  • Loading branch information
kvanhees committed Sep 6, 2022
1 parent a04427e commit 5477340
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libdtrace/dt_cg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2778,14 +2778,13 @@ dt_cg_arglist(dt_ident_t *idp, dt_node_t *args, dt_irlist_t *dlp,
emit(dlp, BPF_CALL_HELPER(BPF_FUNC_probe_read));
dt_regset_free_args(drp);
emit(dlp, BPF_BRANCH_IMM(BPF_JEQ, BPF_REG_0, 0, lbl_valid));
dt_regset_free(drp, BPF_REG_0);
dt_cg_probe_error(yypcb, DTRACEFLT_BADADDR,
DT_ISIMM, 0);

emitl(dlp, lbl_valid,
BPF_ALU64_IMM(BPF_ADD, treg, size));
tuplesize += size;

dt_regset_free(drp, BPF_REG_0);
} else
assert(0); /* We shouldn't be able to get here. */
}
Expand Down

0 comments on commit 5477340

Please sign in to comment.