mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-24 16:43:14 +01:00
Changed the way LDC determines if a template instantiation needs to get a definition, seems to speed up compile times quite a bit in some cases.
This commit is contained in:
@@ -607,7 +607,7 @@ void DtoDeclareStruct(StructDeclaration* sd)
|
||||
sd->ir.irStruct->init = initvar;
|
||||
|
||||
gIR->constInitList.push_back(sd);
|
||||
if (DtoIsTemplateInstance(sd) || sd->getModule() == gIR->dmodule)
|
||||
if (mustDefineSymbol(sd))
|
||||
gIR->defineList.push_back(sd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user