From f97e08b3da14c79f7f78e439d06988753c79384b Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 7 Aug 2022 09:35:07 +0200 Subject: many decl bugfixes --- bootstrap/types.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'bootstrap/types.c') 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; -- cgit v1.2.3