diff --git a/dmd/mtype.c b/dmd/mtype.c index d3ac1bc2..bb5d9e0e 100644 --- a/dmd/mtype.c +++ b/dmd/mtype.c @@ -1002,6 +1002,8 @@ d_uns64 TypeBasic::size(Loc loc) unsigned TypeBasic::alignsize() { + if (ty == Tvoid) + return 1; return getABITypeAlign(DtoType(this)); }