mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
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
243e1df469
commit
9f35c413f5
@ -467,7 +467,8 @@ 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)
|
||||
CurRec->removeValue(SuperClass->getTemplateArgs()[i]);
|
||||
if (!CurRec->isTemplateArg(SuperClass->getTemplateArgs()[i]))
|
||||
CurRec->removeValue(SuperClass->getTemplateArgs()[i]);
|
||||
}
|
||||
delete $4; // Delete the class list...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user