mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-25 21:19:02 +02:00
Remove some unnecessary #ifs. The D1 frontend has a Type::nextOf() which just
returns `next`.
This commit is contained in:
@@ -1422,13 +1422,8 @@ bool hasUnalignedFields(Type* t)
|
||||
{
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user