Update decision to emit typeinfo to what dmd does.

This commit is contained in:
Christian Kamm 2014-06-14 20:01:52 +02:00
parent f0c0a39d31
commit de0ab72324

View file

@ -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
{