summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-26 22:19:44 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-26 22:19:44 +0000
commitd56a91e8f6a63b1c7c69b604f5defb0a94a5c388 (patch)
tree096c9ef8c7ea9f745810227a80ac1c1e4ec76541 /clang/lib/AST/ASTContext.cpp
parente9817aaa0595eae687c06e3c9d9ecfe00a47aa0d (diff)
downloadbcm5719-llvm-d56a91e8f6a63b1c7c69b604f5defb0a94a5c388.tar.gz
bcm5719-llvm-d56a91e8f6a63b1c7c69b604f5defb0a94a5c388.zip
Make the type associated with a ClassTemplateSpecializationDecl be a
nicely sugared type that shows how the user wrote the actual specialization. This sugared type won't actually show up until we start doing instantiations. llvm-svn: 65577
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 60d8b8be801..2b4bc89aace 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -1307,6 +1307,8 @@ ASTContext::getClassTemplateSpecializationType(TemplateDecl *Template,
unsigned NumArgs,
uintptr_t *Args, bool *ArgIsType,
QualType Canon) {
+ Canon = getCanonicalType(Canon);
+
llvm::FoldingSetNodeID ID;
ClassTemplateSpecializationType::Profile(ID, Template, NumArgs, Args,
ArgIsType);
OpenPOWER on IntegriCloud