diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-31 15:46:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-31 15:46:56 +0000 |
commit | a2ffb983a4db32e11860a65309e8e2b72f556763 (patch) | |
tree | 8247c9f389b1be951d61446bfb1e18a0533426da | |
parent | 4a3f780f4f74a80f9b4bc42e38ad60170d5ebd0c (diff) |
Canonicalize template template parameters. We can't test this yet, but
it's "obviously correct" :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77677 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/StmtProfile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/AST/StmtProfile.cpp b/lib/AST/StmtProfile.cpp index 791c4398fb..5a04df0406 100644 --- a/lib/AST/StmtProfile.cpp +++ b/lib/AST/StmtProfile.cpp @@ -622,7 +622,11 @@ void StmtProfiler::VisitDecl(Decl *D) { return; } - // FIXME: Template template parameters? + if (TemplateTemplateParmDecl *TTP = dyn_cast<TemplateTemplateParmDecl>(D)) { + ID.AddInteger(TTP->getDepth()); + ID.AddInteger(TTP->getIndex()); + return; + } if (OverloadedFunctionDecl *Ovl = dyn_cast<OverloadedFunctionDecl>(D)) { // Canonicalize all of the function declarations within the overload |