Fix size of classes

This commit is contained in:
Alexey Prokhin
2011-02-25 22:28:59 +03:00
parent b03babcab6
commit 12984d9cc7
2 changed files with 4 additions and 0 deletions

View File

@@ -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++;