Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 1457:ed70675862c8
Remove some unnecessary `#if`s. The D1 frontend has a Type::nextOf() which just
returns `next`.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 02 Jun 2009 18:41:10 +0200 |
parents | 638d16625da2 |
children | a5526b7a5ae6 |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Tue Jun 02 17:12:37 2009 +0100 +++ b/gen/llvmhelpers.cpp Tue Jun 02 18:41:10 2009 +0200 @@ -1422,13 +1422,8 @@ { 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;