aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/cgen.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-07 09:35:07 +0200
committerlemon <lsof@mailbox.org>2022-08-07 09:35:07 +0200
commitf97e08b3da14c79f7f78e439d06988753c79384b (patch)
treef4d51145f057a38c99bc304d15a422546dc766ef /bootstrap/cgen.c
parent59988a43079d0097151f57f941ea8f01a0b714d7 (diff)
many decl bugfixes
Diffstat (limited to 'bootstrap/cgen.c')
-rw-r--r--bootstrap/cgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c
index 0bd8bcb..91429ee 100644
--- a/bootstrap/cgen.c
+++ b/bootstrap/cgen.c
@@ -625,7 +625,7 @@ defctype(const struct type *ty, void *_) {
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]);
+ liftdecl(ty->agg.decls.d[i]);
break;
case TYeunion:
break;
@@ -650,6 +650,6 @@ cgen(FILE *fp, const struct comfile *cf) {
visittypes(defctype, NULL);
for (int i = 0; i < cf->decls.n; ++i) {
- gendecl(&cf->decls.d[i], 1);
+ gendecl(cf->decls.d[i], 1);
}
}