diff ir/irtypeclass.cpp @ 1457:ed70675862c8

Remove some unnecessary `#if`s. The D1 frontend has a Type::nextOf() which just returns `next`.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 02 Jun 2009 18:41:10 +0200
parents 638d16625da2
children 2292878925f4
line wrap: on
line diff
--- a/ir/irtypeclass.cpp	Tue Jun 02 17:12:37 2009 +0100
+++ b/ir/irtypeclass.cpp	Tue Jun 02 18:41:10 2009 +0200
@@ -171,11 +171,7 @@
         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);