зеркало из https://github.com/microsoft/clang-1.git
Simplify code using the new FoldingSetImpl::InsertNode() overload.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
cad8d31117
Коммит
0a67eddc8f
|
@ -929,15 +929,9 @@ void PCHDeclReader::VisitClassTemplateSpecializationDecl(
|
|||
= cast<ClassTemplateDecl>(Reader.GetDecl(Record[Idx++]));
|
||||
if (ClassTemplatePartialSpecializationDecl *Partial
|
||||
= dyn_cast<ClassTemplatePartialSpecializationDecl>(D)) {
|
||||
ClassTemplatePartialSpecializationDecl *Inserted
|
||||
= CanonPattern->getPartialSpecializations().GetOrInsertNode(Partial);
|
||||
(void)Inserted;
|
||||
assert(Inserted == Partial && "Already inserted!");
|
||||
CanonPattern->getPartialSpecializations().InsertNode(Partial);
|
||||
} else {
|
||||
ClassTemplateSpecializationDecl *Inserted
|
||||
= CanonPattern->getSpecializations().GetOrInsertNode(D);
|
||||
(void)Inserted;
|
||||
assert(Inserted == D && "Already inserted!");
|
||||
CanonPattern->getSpecializations().InsertNode(D);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче