forked from OSchip/llvm-project
Properly add chained template specializations.
llvm-svn: 117535
This commit is contained in:
parent
4729972c0f
commit
ef80a01d04
|
@ -3323,6 +3323,8 @@ void ASTWriter::AddedCXXImplicitMember(const CXXRecordDecl *RD, const Decl *D) {
|
|||
|
||||
void ASTWriter::AddedCXXTemplateSpecialization(const ClassTemplateDecl *TD,
|
||||
const ClassTemplateSpecializationDecl *D) {
|
||||
// The specializations set is kept in the canonical template.
|
||||
TD = TD->getCanonicalDecl();
|
||||
if (!(D->getPCHLevel() == 0 && TD->getPCHLevel() > 0))
|
||||
return; // Not a source specialization added to a template from PCH.
|
||||
|
||||
|
|
Loading…
Reference in New Issue