aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclarationName.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-05 05:36:45 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-05 05:36:45 +0000
commit50d62d1b4a98adbc83de8f8cd1379ea1c25656f7 (patch)
treeacbdf51eb2a3ea3b6b4a7db47c97e97233d83b55 /lib/AST/DeclarationName.cpp
parent4ed459851eef142f2059af7ae487484e8a14fc67 (diff)
Introduce the canonical type smart pointers, and use them in a few places to
tighten up the static type system. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclarationName.cpp')
-rw-r--r--lib/AST/DeclarationName.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/AST/DeclarationName.cpp b/lib/AST/DeclarationName.cpp
index a55b363a0d..da9f01a9aa 100644
--- a/lib/AST/DeclarationName.cpp
+++ b/lib/AST/DeclarationName.cpp
@@ -298,12 +298,10 @@ DeclarationNameTable::~DeclarationNameTable() {
DeclarationName
DeclarationNameTable::getCXXSpecialName(DeclarationName::NameKind Kind,
- QualType Ty) {
+ CanQualType Ty) {
assert(Kind >= DeclarationName::CXXConstructorName &&
Kind <= DeclarationName::CXXConversionFunctionName &&
"Kind must be a C++ special name kind");
- assert(Ty->isCanonical() &&
- "Can only build C++ special names from canonical types");
llvm::FoldingSet<CXXSpecialName> *SpecialNames
= static_cast<llvm::FoldingSet<CXXSpecialName>*>(CXXSpecialNamesImpl);