Replace template symbol module fix with more localized hack.

This reverts commit c4adbedcc, which would have fixed the
problem at its roots, but caused strange template function
attribute inference failures in D-YAML, presumably due to
the different order of semantic3 execution on the templates.
This commit is contained in:
David Nadlinger
2012-12-31 02:39:47 +01:00
parent 2898e5cac3
commit 39e3e3a678
8 changed files with 32 additions and 52 deletions

View File

@@ -35,7 +35,7 @@ using namespace llvm::dwarf;
static Module* getDefinedModule(Dsymbol* s)
{
// templates are defined in current module
if (DtoIsTemplateInstance(s))
if (DtoIsTemplateInstance(s, true))
{
return gIR->dmodule;
}