Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1423:42bd767ec5a4 | 1452:638d16625da2 |
---|---|
169 bool new_instances = (base == cd); | 169 bool new_instances = (base == cd); |
170 | 170 |
171 ArrayIter<BaseClass> it2(*base->vtblInterfaces); | 171 ArrayIter<BaseClass> it2(*base->vtblInterfaces); |
172 | 172 |
173 VarDeclarationIter interfaces_idx(ClassDeclaration::classinfo->fields, 3); | 173 VarDeclarationIter interfaces_idx(ClassDeclaration::classinfo->fields, 3); |
174 #if DMDV2 | |
175 Type* first = interfaces_idx->type->nextOf()->pointerTo(); | |
176 #else | |
174 Type* first = interfaces_idx->type->next->pointerTo(); | 177 Type* first = interfaces_idx->type->next->pointerTo(); |
178 #endif | |
175 | 179 |
176 // align offset | 180 // align offset |
177 offset = (offset + PTRSIZE - 1) & ~(PTRSIZE - 1); | 181 offset = (offset + PTRSIZE - 1) & ~(PTRSIZE - 1); |
178 | 182 |
179 for (; !it2.done(); it2.next()) | 183 for (; !it2.done(); it2.next()) |