diff options
| author | 2022-08-08 06:29:26 +0200 | |
|---|---|---|
| committer | 2022-08-08 06:29:26 +0200 | |
| commit | 8e94bb58ca91b26c0916210a179157b1280489be (patch) | |
| tree | d42f1a4842b34ba282213f290a05582e2e515dd8 /bootstrap/cgen.c | |
| parent | c6ea883724ed389143dbed1806916aa09157b655 (diff) | |
tweak
Diffstat (limited to 'bootstrap/cgen.c')
| -rw-r--r-- | bootstrap/cgen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c index 8e2fef9..db477fd 100644 --- a/bootstrap/cgen.c +++ b/bootstrap/cgen.c @@ -684,6 +684,8 @@ defctype(const struct type *ty, void *_) { pri("typedef %s %s %s;\n", kind, *cname, *cname); if (!ty->agg.fwd) { pri("%s %s {\n", kind, *cname); + if (!ty->agg.flds.n) + pri("char _;\n"); for (int i = 0; i < ty->agg.flds.n; ++i) { struct aggfield fld = ty->agg.flds.d[i]; defctype(ty->agg.flds.d[i].ty, NULL); |