summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--6/typeinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/6/typeinfo.c b/6/typeinfo.c
index 0a7045b..c7bed27 100644
--- a/6/typeinfo.c
+++ b/6/typeinfo.c
@@ -343,6 +343,9 @@ tyalign(Type *ty)
for (i = 0; i < ty->nmemb; i++)
align = max(align, tyalign(decltype(ty->sdecls[i])));
break;
+ case Tyslice:
+ align = 8;
+ break;
default:
align = max(align, tysize(ty));
}