forked from OSchip/llvm-project
Do not remove an active template argument even if the superclass had one of the
same name llvm-svn: 11950
This commit is contained in:
parent
178f0f1405
commit
36326de312
|
@ -467,6 +467,7 @@ ObjectBody : OptID {
|
|||
for (unsigned i = 0, e = $4->size(); i != e; ++i) {
|
||||
Record *SuperClass = (*$4)[i].first;
|
||||
for (unsigned i = 0, e = SuperClass->getTemplateArgs().size(); i != e; ++i)
|
||||
if (!CurRec->isTemplateArg(SuperClass->getTemplateArgs()[i]))
|
||||
CurRec->removeValue(SuperClass->getTemplateArgs()[i]);
|
||||
}
|
||||
delete $4; // Delete the class list...
|
||||
|
|
Loading…
Reference in New Issue