diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-26 22:19:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-26 22:19:44 +0000 |
commit | d56a91e8f6a63b1c7c69b604f5defb0a94a5c388 (patch) | |
tree | 096c9ef8c7ea9f745810227a80ac1c1e4ec76541 /clang/lib/AST/ASTContext.cpp | |
parent | e9817aaa0595eae687c06e3c9d9ecfe00a47aa0d (diff) | |
download | bcm5719-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.cpp | 2 |
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); |