From ae9a859b306e88e0324c30d3bc9f67aa6c24bd3f Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Tue, 28 Oct 2025 04:29:09 -0400 Subject: fix segfault in dedup_lit --- ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir.c b/ir.c index c4115b7..31a090e 100644 --- a/ir.c +++ b/ir.c @@ -201,7 +201,7 @@ Node *node_dedup_lit(Graph *p, Value v) { * but does it matter? how many nodes are direct children of the start node? * how many literals even usually occur in a procedure? */ for (u32 i = 0; i < p->start->out.len; i++) { - Node *t = p->start->out.data[i]; + Node *t = OUT(p->start, i); if (t->op == N_LIT && type_eql(&t->type, &v.type) && t->val.i == v.i) { return t; } -- cgit v1.2.3