mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Switch some getModule to getCompilationModule to make sure templates are
emitted in the right module.
This commit is contained in:
@@ -1563,9 +1563,10 @@ bool mustDefineSymbol(Dsymbol* s)
|
||||
Module* M = DtoIsTemplateInstance(s);
|
||||
// if it's a template instance, check the instantiating module
|
||||
// not the module that defines the template
|
||||
if (M)
|
||||
if (M) {
|
||||
return M == gIR->dmodule;
|
||||
return s->getModule() == gIR->dmodule;
|
||||
}
|
||||
return s->getCompilationModule() == gIR->dmodule;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user