From e02a6097e690f9c3dc22e5ed469304a54cafd7b8 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 23 Sep 2024 13:53:57 -0400 Subject: [PATCH] Set node_id to -1 in add_adjust_info add_adjust_info will increment the insns_info_index, so we need to set the node_id to -1 to prevent a "Conditional jump or move depends on uninitialised value" in Valgrind. --- compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compile.c b/compile.c index b726a03d59..a044a30abd 100644 --- a/compile.c +++ b/compile.c @@ -2465,6 +2465,7 @@ add_adjust_info(struct iseq_insn_info_entry *insns_info, unsigned int *positions int insns_info_index, int code_index, const ADJUST *adjust) { insns_info[insns_info_index].line_no = adjust->line_no; + insns_info[insns_info_index].node_id = -1; insns_info[insns_info_index].events = 0; positions[insns_info_index] = code_index; return TRUE;