mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Remove some unnecessary #ifs. The D1 frontend has a Type::nextOf() which just
returns `next`.
This commit is contained in:
@@ -171,11 +171,7 @@ void IrTypeClass::addBaseClassData(
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user