From 59988a43079d0097151f57f941ea8f01a0b714d7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 7 Aug 2022 07:19:07 +0200 Subject: Type:decl syntax and fix some diagnostics --- bootstrap/cgen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bootstrap/cgen.c') 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; -- cgit v1.2.3