mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Do not remove an active template argument even if the superclass had one of the
same name git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb7d6d016e
commit
8a4045e4d7
@ -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…
x
Reference in New Issue
Block a user