Mercurial > projects > ldc
diff ir/irtypeclass.cpp @ 1452:638d16625da2
LDC 2 compiles again.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sat, 30 May 2009 17:23:32 +0100 |
parents | 8d501abecd24 |
children | ed70675862c8 |
line wrap: on
line diff
--- a/ir/irtypeclass.cpp Thu May 28 00:07:21 2009 +0200 +++ b/ir/irtypeclass.cpp Sat May 30 17:23:32 2009 +0100 @@ -171,7 +171,11 @@ ArrayIter<BaseClass> it2(*base->vtblInterfaces); VarDeclarationIter interfaces_idx(ClassDeclaration::classinfo->fields, 3); +#if DMDV2 + Type* first = interfaces_idx->type->nextOf()->pointerTo(); +#else Type* first = interfaces_idx->type->next->pointerTo(); +#endif // align offset offset = (offset + PTRSIZE - 1) & ~(PTRSIZE - 1);