summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-20 13:59:40 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-20 13:59:40 +0000
commitc1624e9edace092867861866d039d123276079cf (patch)
tree836dda6eb795683ffabc226af3b0dd6b1edd300d /clang/lib/Frontend/PCHReaderDecl.cpp
parent47470f2f3fbd4a2aaeef404d3fb6a1fbcd392e4d (diff)
downloadbcm5719-llvm-c1624e9edace092867861866d039d123276079cf.tar.gz
bcm5719-llvm-c1624e9edace092867861866d039d123276079cf.zip
Whether the specialization should be added to template's folding set when read from PCH,
is determined by a isCanonicalDecl check. llvm-svn: 108833
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 0231fa66a95..5b41280138f 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -926,7 +926,7 @@ void PCHDeclReader::VisitClassTemplateSpecializationDecl(
D->setPointOfInstantiation(POI);
D->setSpecializationKind((TemplateSpecializationKind)Record[Idx++]);
- if (Record[Idx++]) { // IsKeptInFoldingSet.
+ if (D->isCanonicalDecl()) { // It's kept in the folding set.
ClassTemplateDecl *CanonPattern
= cast<ClassTemplateDecl>(Reader.GetDecl(Record[Idx++]));
if (ClassTemplatePartialSpecializationDecl *Partial
OpenPOWER on IntegriCloud