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

@ -1592,6 +1592,7 @@ size_t realignOffset(size_t offset, Type* type)
// if it differs we need to insert manual padding as well
if (alignsize != alignsize2)
{
// FIXME: this assert fails on std.typecons
//assert(alignsize > alignsize2 && "this is not good, the D and LLVM "
// "type alignments differ, but LLVM's is bigger! This will break "
// "aggregate type mapping");