From e6fbab42185f4fb4e3a3b1e3e93eaa5d3d81b7c7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 20 Dec 2025 17:59:40 +0100 Subject: backend: unify pass memory allocation strategies It was all over the place for temporary data structures used by individual passes. Now there is an arena specifically for that, which is nicer. --- c/c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/c.c') diff --git a/c/c.c b/c/c.c index 0e3b612..249c009 100644 --- a/c/c.c +++ b/c/c.c @@ -4423,7 +4423,7 @@ tldecl(struct comp *cm) } decl.isdef = 1; struct decl *d = putdecl(cm, &decl); - struct function fn = { &cm->fnarena, decl.name, .globl = d->scls != SCSTATIC, .fnty = decl.ty, .retty = td->ret }; + struct function fn = { &cm->fnarena, .name = decl.name, .globl = d->scls != SCSTATIC, .fnty = decl.ty, .retty = td->ret }; irinit(&fn); function(cm, &fn, st.pnames, st.pspans, st.pqual); if (!nerror && ccopt.dbg.p) -- cgit v1.2.3