diff options
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); |