mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-29 23:11:29 +02:00
Fix size of classes
This commit is contained in:
@@ -737,6 +737,9 @@ void ClassDeclaration::semantic(Scope *sc)
|
||||
alignsize = thissize;
|
||||
}
|
||||
structsize = sc->offset;
|
||||
#if IN_LLVM
|
||||
structsize = (structsize + structalign - 1) & ~(structalign - 1);
|
||||
#endif
|
||||
sizeok = 1;
|
||||
Module::dprogress++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user