From 10d44580bb444253f791e7f60530ae63f9db4778 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 22 Nov 2025 13:25:24 +0100 Subject: ir/dump: initialize out buffer statically --- ir/dump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ir/dump.c') diff --git a/ir/dump.c b/ir/dump.c index a04e833..d580a26 100644 --- a/ir/dump.c +++ b/ir/dump.c @@ -4,7 +4,7 @@ static int nextdat; -static struct wbuf *out; +static struct wbuf *out = &bstdout; static bool prilitdat(const struct irdat *dat, const char *prefix) @@ -267,8 +267,6 @@ irdump(struct function *fn) { struct block *blk; - out = &bstdout; - /* print datas that have never been printed before */ while (nextdat < dattab.n) pridat(&dattab.p[nextdat++]); -- cgit v1.2.3