From: Douglas Gregor Date: Fri, 31 Jul 2009 15:46:56 +0000 (+0000) Subject: Canonicalize template template parameters. We can't test this yet, but X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2ffb983a4db32e11860a65309e8e2b72f556763;p=clang 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 --- 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(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