Commit cca38a73 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Disable the cacheing of template instantiations.

parent e9c43b3e
......@@ -521,11 +521,6 @@ ClassOrNamespace *ClassOrNamespace::nestedType(const Name *name) const
ClassOrNamespace *c = it->second;
if (const TemplateNameId *templId = name->asTemplateNameId()) {
foreach (ClassOrNamespace *i, c->_instantiations) {
if (i->_templateId && templId->isEqualTo(i->_templateId))
return i;
}
ClassOrNamespace *i = _factory->allocClassOrNamespace(c);
i->_templateId = templId;
i->_usings.append(c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment