Skip to content

Commit

Permalink
heat going up
Browse files Browse the repository at this point in the history
RealNeGate committed Nov 15, 2023
1 parent 0e8af7f commit 9452ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tb/src/opt/mem2reg.h
Original file line number Diff line number Diff line change
@@ -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];

0 comments on commit 9452ccf

Please sign in to comment.