mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
LDC 2 compiles again.
This commit is contained in:
parent
6619190ba5
commit
c5be82c5ae
97 changed files with 67333 additions and 56949 deletions
|
@ -1422,8 +1422,13 @@ 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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue