diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-05 05:36:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-05 05:36:45 +0000 |
commit | 50d62d1b4a98adbc83de8f8cd1379ea1c25656f7 (patch) | |
tree | acbdf51eb2a3ea3b6b4a7db47c97e97233d83b55 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 4ed459851eef142f2059af7ae487484e8a14fc67 (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/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index abe1fffe88..021a6ad2ab 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -484,7 +484,7 @@ Decl *TemplateDeclInstantiator::VisitCXXDestructorDecl(CXXDestructorDecl *D) { // Build the instantiated destructor declaration. CXXRecordDecl *Record = cast<CXXRecordDecl>(Owner); - QualType ClassTy = + CanQualType ClassTy = SemaRef.Context.getCanonicalType(SemaRef.Context.getTypeDeclType(Record)); CXXDestructorDecl *Destructor = CXXDestructorDecl::Create(SemaRef.Context, Record, @@ -517,7 +517,7 @@ Decl *TemplateDeclInstantiator::VisitCXXConversionDecl(CXXConversionDecl *D) { // Build the instantiated conversion declaration. CXXRecordDecl *Record = cast<CXXRecordDecl>(Owner); QualType ClassTy = SemaRef.Context.getTypeDeclType(Record); - QualType ConvTy + CanQualType ConvTy = SemaRef.Context.getCanonicalType(T->getAsFunctionType()->getResultType()); CXXConversionDecl *Conversion = CXXConversionDecl::Create(SemaRef.Context, Record, |