Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 1452:638d16625da2
LDC 2 compiles again.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sat, 30 May 2009 17:23:32 +0100 |
parents | 3f5ea912149d |
children | ed70675862c8 |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Thu May 28 00:07:21 2009 +0200 +++ b/gen/llvmhelpers.cpp Sat May 30 17:23:32 2009 +0100 @@ -1422,8 +1422,13 @@ { t = t->toBasetype(); if (t->ty == Tsarray) { +#if DMDV2 + assert(t->nextOf()->size() % t->nextOf()->alignsize() == 0); + return hasUnalignedFields(t->nextOf()); +#else assert(t->next->size() % t->next->alignsize() == 0); return hasUnalignedFields(t->next); +#endif } else if (t->ty != Tstruct) return false;