changeset 669:92ec7487a1a0

Fix odd interfaceInfoType bug.
author Christian Kamm <kamm incasoftware de>
date Wed, 08 Oct 2008 20:28:59 +0200
parents 216b14b9a773
children 4f004553de33 96e425004a68
files gen/classes.cpp
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gen/classes.cpp	Tue Oct 07 20:22:04 2008 +0200
+++ b/gen/classes.cpp	Wed Oct 08 20:28:59 2008 +0200
@@ -279,9 +279,6 @@
     // name the type
     gIR->module->addTypeName(cd->mangle(), ts->ir.type->get());
 
-    // get interface info type
-    const llvm::StructType* infoTy = DtoInterfaceInfoType();
-
     // create vtable type
     llvm::GlobalVariable* svtblVar = 0;
 #if OPAQUE_VTBLS
@@ -311,7 +308,7 @@
             Logger::println("*** ClassDeclaration in vtable: %s", cd2->toChars());
             const LLType* cinfoty;
             if (cd->isInterfaceDeclaration()) {
-                cinfoty = infoTy;
+                cinfoty = DtoInterfaceInfoType();
             }
             else if (cd != ClassDeclaration::classinfo) {
                 cinfoty = ClassDeclaration::classinfo->type->ir.type->get();