Canonicalize template template parameters. We can't test this yet, but

it's "obviously correct" :) 

llvm-svn: 77677
This commit is contained in:
Douglas Gregor 2009-07-31 15:46:56 +00:00
parent 70317123c9
commit c97f09f565
1 changed files with 5 additions and 1 deletions

View File

@ -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