From 4d610bcd7e2b6e310995f70be1e467e2030d88b6 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 8 Oct 2008 20:28:59 +0200 Subject: [PATCH] Fix odd interfaceInfoType bug. --- gen/classes.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gen/classes.cpp b/gen/classes.cpp index 7e48d548..d586f09b 100644 --- a/gen/classes.cpp +++ b/gen/classes.cpp @@ -279,9 +279,6 @@ void DtoResolveClass(ClassDeclaration* cd) // 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 @@ void DtoResolveClass(ClassDeclaration* cd) 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();