[cfe-commits] r77677 - /cfe/trunk/lib/AST/StmtProfile.cpp
Douglas Gregor
dgregor at apple.com
Fri Jul 31 08:46:57 PDT 2009
Author: dgregor
Date: Fri Jul 31 10:46:56 2009
New Revision: 77677
URL: http://llvm.org/viewvc/llvm-project?rev=77677&view=rev
Log:
Canonicalize template template parameters. We can't test this yet, but
it's "obviously correct" :)
Modified:
cfe/trunk/lib/AST/StmtProfile.cpp
Modified: cfe/trunk/lib/AST/StmtProfile.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtProfile.cpp?rev=77677&r1=77676&r2=77677&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtProfile.cpp (original)
+++ cfe/trunk/lib/AST/StmtProfile.cpp Fri Jul 31 10:46:56 2009
@@ -622,7 +622,11 @@
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
More information about the cfe-commits
mailing list