diff ir/irclass.cpp @ 1452:638d16625da2

LDC 2 compiles again.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 30 May 2009 17:23:32 +0100
parents e5c5d354c649
children f35a9a77d256
line wrap: on
line diff
--- a/ir/irclass.cpp	Thu May 28 00:07:21 2009 +0200
+++ b/ir/irclass.cpp	Sat May 30 17:23:32 2009 +0100
@@ -111,7 +111,11 @@
                     "don't implement any interfaces");
 
     VarDeclarationIter idx(ClassDeclaration::classinfo->fields, 3);
+#if DMDV2
+    const llvm::Type* InterfaceTy = DtoType(idx->type->nextOf());
+#else
     const llvm::Type* InterfaceTy = DtoType(idx->type->next);
+#endif
 
     // create Interface[N]
     const llvm::ArrayType* array_type = llvm::ArrayType::get(InterfaceTy,n);
@@ -328,7 +332,11 @@
 
     // start with the interface info
     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
 
     // index into the interfaces array
     llvm::Constant* idxs[2] = {