summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-10-28 07:38:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-10-28 07:38:47 +0000
commitef80a01d046962d9a9bee00c3b62d8029c8db864 (patch)
tree67a1d7e79845a3b743e7e882f0714a35356a17fd /clang/lib/Serialization/ASTWriter.cpp
parent4729972c0f8a54504466bd212a8ee5e1826c681b (diff)
downloadbcm5719-llvm-ef80a01d046962d9a9bee00c3b62d8029c8db864.tar.gz
bcm5719-llvm-ef80a01d046962d9a9bee00c3b62d8029c8db864.zip
Properly add chained template specializations.
llvm-svn: 117535
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 3e7667404d5..283d086f0c7 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -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.
OpenPOWER on IntegriCloud