diff options
| author | 2022-08-17 05:18:22 +0200 | |
|---|---|---|
| committer | 2022-08-17 05:18:22 +0200 | |
| commit | c50a02ec703c7c1c5f6823c8cbd07a424d604792 (patch) | |
| tree | ef80066da26b0b91c73fba6c6e3234ddc78d869c /bootstrap | |
| parent | 1ca77f60626666fba792db407dd11ea9b597d9cf (diff) | |
more exprs, warnings
Diffstat (limited to 'bootstrap')
| -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 0887ca7..d7b91b0 100644 --- a/bootstrap/cgen.c +++ b/bootstrap/cgen.c @@ -758,7 +758,9 @@ defctype(const struct type *ty, void *_) { return; } defctype(ty->child, NULL); + if (ty->_cname) break; *cname = xasprintf("__ty%d", id++); + pri("typedef struct { %t *ptr; size_t len; } %s;\n", ty->child, *cname); pri("_Static_assert(sizeof(%s) == %U, \"sizeof(%t) == %U\");\n", |