aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_dump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-21 17:55:01 +0100
committerlemon <lsof@mailbox.org>2026-03-21 17:55:01 +0100
commit0e75fc383becccd113416677b7e26e0caf21e28b (patch)
tree356cf6c271ea8e0b2ca0211ac0c9efe776cc2118 /src/ir_dump.c
parent8b846d0245744f4eefc32f3c98b6359a3d21e659 (diff)
Rework handling of predefined macros.
And add some GCC predefs like __SIZE_TYPE__, __LONG_SIZE__, etc
Diffstat (limited to 'src/ir_dump.c')
-rw-r--r--src/ir_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_dump.c b/src/ir_dump.c
index a3f59f7..7534370 100644
--- a/src/ir_dump.c
+++ b/src/ir_dump.c
@@ -81,8 +81,8 @@ prityp(IRType typ)
else {
const TypeData *td = &typedata[typ.dat];
const char *tag = td->t == TYSTRUCT ? "struct" : "union";
- if (ttypenames[td->id])
- bfmt(out, "%s.%s.%d", tag, ttypenames[td->id], td->id);
+ if (tagtypetags[td->id])
+ bfmt(out, "%s.%s.%d", tag, tagtypetags[td->id], td->id);
else
bfmt(out, "%s.%d", tag, td->id);
}