From de0ab72324a1fbbc17b2e81fbaab06b83dfc4fea Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 14 Jun 2014 20:01:52 +0200 Subject: [PATCH] Update decision to emit typeinfo to what dmd does. --- gen/typinf.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/gen/typinf.cpp b/gen/typinf.cpp index 2d39609bb6..1906c9a84b 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -155,18 +155,7 @@ Expression *Type::getTypeInfo(Scope *sc) Module *m = sc->module->importedFrom; m->members->push(t->vtinfo); - if (ty == Tstruct) - { - StructDeclaration *sd = ((TypeStruct *)this)->sym; - if ((sd->xeq && sd->xeq != sd->xerreq || - sd->xcmp && sd->xcmp != sd->xerrcmp || - search_toHash(sd) || - search_toString(sd) - ) && sd->inNonRoot()) - { - Module::addDeferredSemantic3(sd); - } - } + semanticTypeInfo(sc, t); } else // if in obj generation pass {