From c97f09f5655b24983c1b0da821fb8d56a0cb0153 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 31 Jul 2009 15:46:56 +0000 Subject: [PATCH] Canonicalize template template parameters. We can't test this yet, but it's "obviously correct" :) llvm-svn: 77677 --- clang/lib/AST/StmtProfile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 791c4398fbe9..5a04df04065a 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -622,7 +622,11 @@ void StmtProfiler::VisitDecl(Decl *D) { return; } - // FIXME: Template template parameters? + if (TemplateTemplateParmDecl *TTP = dyn_cast(D)) { + ID.AddInteger(TTP->getDepth()); + ID.AddInteger(TTP->getIndex()); + return; + } if (OverloadedFunctionDecl *Ovl = dyn_cast(D)) { // Canonicalize all of the function declarations within the overload