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. --- ir/regalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ir/regalloc.c') diff --git a/ir/regalloc.c b/ir/regalloc.c index 9c1f232..e8eccfb 100644 --- a/ir/regalloc.c +++ b/ir/regalloc.c @@ -1274,7 +1274,7 @@ void regalloc(struct function *fn) { static union ref *stkslotrefsbuf[64]; - struct rega ra = {fn, .arena = fn->arena}; + struct rega ra = {fn, .arena = fn->passarena}; struct block *blk, *last; /* setup */ -- cgit v1.2.3