aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/types.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/types.c
parent59988a43079d0097151f57f941ea8f01a0b714d7 (diff)
many decl bugfixes
Diffstat (limited to 'bootstrap/types.c')
-rw-r--r--bootstrap/types.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bootstrap/types.c b/bootstrap/types.c
index f826f9d..4b4e5be 100644
--- a/bootstrap/types.c
+++ b/bootstrap/types.c
@@ -45,7 +45,6 @@ hashtype(const struct type *ty) {
break;
case TYptr:
case TYslice:
- assert(ty->child->size || ty->align == 1);
h = fnv1ai(h, ty->child->_id);
break;
case TYarr:
@@ -158,8 +157,6 @@ interntype(struct type ty) {
static int id;
if (!ty.align)
ty.align = ty.size;
- if ((ty.t == TYptr || ty.t == TYarr) && !ty.child->size)
- ty.align = 1;
const struct type *ty2 = typesfind(&ty);
if (ty2)
return ty2;