From 9452ccf960a65da60b51767f103bd4d718ff3ee3 Mon Sep 17 00:00:00 2001 From: Yasser Arguelles Snape Date: Tue, 14 Nov 2023 23:55:17 -0800 Subject: [PATCH] heat going up --- tb/src/opt/mem2reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tb/src/opt/mem2reg.h b/tb/src/opt/mem2reg.h index ab5c1c04..3eaf486d 100644 --- a/tb/src/opt/mem2reg.h +++ b/tb/src/opt/mem2reg.h @@ -104,7 +104,7 @@ static void ssa_replace_phi_arg(Mem2Reg_Ctx* c, TB_Function* f, TB_Node* bb, TB_ TB_Node* top; if (dyn_array_length(stack[var]) == 0) { // this is UB land, insert poison - top = make_poison(f, c->p, TB_TYPE_VOID); + top = make_poison(f, c->p, phi_reg->dt); log_warn("%s: v%u: generated poison due to read of uninitialized local", f->super.name, top->gvn); } else { top = stack[var][dyn_array_length(stack[var]) - 1];