aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/types.c
diff options
context:
space:
mode:
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;