summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2025-10-28 04:29:09 -0400
committerWormHeamer2025-10-28 04:29:09 -0400
commitae9a859b306e88e0324c30d3bc9f67aa6c24bd3f (patch)
treea80163643989a323c138f85a17b9c77afc001f36
parentf360f57c45073b5e9ea74da442174b53020d15ec (diff)
fix segfault in dedup_lit
-rw-r--r--ir.c2
1 files changed, 1 insertions, 1 deletions
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;
}