diff options
| author | 2022-08-07 07:19:07 +0200 | |
|---|---|---|
| committer | 2022-08-07 07:19:07 +0200 | |
| commit | 59988a43079d0097151f57f941ea8f01a0b714d7 (patch) | |
| tree | 20932bdc821a013efaa06966ec88500ff33e6fc7 /bootstrap/cgen.c | |
| parent | e26df7d77f923108ac121f1d6c9c3160a6855109 (diff) | |
Type:decl syntax and fix some diagnostics
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 2d83044..0bd8bcb 100644 --- a/bootstrap/cgen.c +++ b/bootstrap/cgen.c @@ -624,6 +624,8 @@ defctype(const struct type *ty, void *_) { pri("_Static_assert(sizeof(%s) == %U);\n", *cname, (u64)ty->size); pri("_Static_assert(__alignof__(%s) == %U);\n", *cname, (u64)ty->align); } + for (int i = 0; i < ty->agg.decls.n; ++i) + liftdecl(&ty->agg.decls.d[i]); break; case TYeunion: break; |