diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-05 15:48:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-05 15:48:55 +0000 |
commit | f550077ef5abe24aa34ccba1d3ad5bbcc9387be7 (patch) | |
tree | 436efb71d09100f5e5664fd7fd444cb44db1e3f5 /clang/lib/AST/StmtProfile.cpp | |
parent | c7d65b42fce5969949a6f099fd4fea383cbf69d9 (diff) | |
download | bcm5719-llvm-f550077ef5abe24aa34ccba1d3ad5bbcc9387be7.tar.gz bcm5719-llvm-f550077ef5abe24aa34ccba1d3ad5bbcc9387be7.zip |
Implement support for template template parameter packs, e.g.,
template<template<class> class ...Metafunctions>
struct apply_to_each;
llvm-svn: 122874
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index ab24a691240..17a9326cc0b 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -903,7 +903,7 @@ void StmtProfiler::VisitDecl(Decl *D) { if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { ID.AddInteger(NTTP->getDepth()); ID.AddInteger(NTTP->getIndex()); - ID.AddInteger(NTTP->isParameterPack()); + ID.AddBoolean(NTTP->isParameterPack()); VisitType(NTTP->getType()); return; } @@ -921,6 +921,7 @@ void StmtProfiler::VisitDecl(Decl *D) { if (TemplateTemplateParmDecl *TTP = dyn_cast<TemplateTemplateParmDecl>(D)) { ID.AddInteger(TTP->getDepth()); ID.AddInteger(TTP->getIndex()); + ID.AddBoolean(TTP->isParameterPack()); return; } } |