mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 20:03:14 +01:00
Fixed alignsize for void types. (it's one byte)
This commit is contained in:
@@ -1002,6 +1002,8 @@ d_uns64 TypeBasic::size(Loc loc)
|
||||
|
||||
unsigned TypeBasic::alignsize()
|
||||
{
|
||||
if (ty == Tvoid)
|
||||
return 1;
|
||||
return getABITypeAlign(DtoType(this));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user