# HG changeset patch # User Christian Kamm # Date 1223490539 -7200 # Node ID 92ec7487a1a05b9a44e08ae59bed7bb38a8c653f # Parent 216b14b9a773fa4b9603b02ff3c035672f19a9b5 Fix odd interfaceInfoType bug. diff -r 216b14b9a773 -r 92ec7487a1a0 gen/classes.cpp --- 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();