[cfe-commits] r117535 - /cfe/trunk/lib/Serialization/ASTWriter.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Oct 28 00:38:47 PDT 2010
Author: akirtzidis
Date: Thu Oct 28 02:38:47 2010
New Revision: 117535
URL: http://llvm.org/viewvc/llvm-project?rev=117535&view=rev
Log:
Properly add chained template specializations.
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=117535&r1=117534&r2=117535&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Thu Oct 28 02:38:47 2010
@@ -3323,6 +3323,8 @@
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.
More information about the cfe-commits
mailing list