aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-22 13:25:24 +0100
committerlemon <lsof@mailbox.org>2025-11-22 13:25:24 +0100
commit10d44580bb444253f791e7f60530ae63f9db4778 (patch)
tree1f31b8ea504ea2d83b91c7fcbc0eaf649cf19e5b
parent6256bc1d0485a74e7d6728c95603a54a4149cb64 (diff)
ir/dump: initialize out buffer statically
-rw-r--r--ir/dump.c4
1 files changed, 1 insertions, 3 deletions
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++]);