diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-18 02:02:13 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-18 02:02:13 +0000 |
commit | 7d5088aa52d6e32b309ad0af32ea520ddbc5f953 (patch) | |
tree | d94a8ab89a214972208214c4d11ac57acf0050bf /lib/Sema/SemaLookup.cpp | |
parent | 7acebfb71f16a8bb15add402ab915d23c64d912f (diff) |
Initial refactoring of 'ShouldDeleteSpecialMember', in preparation for providing
decent diagnostics. Finish the work of combining all the 'ShouldDelete'
functions into one. In unifying the code, fix a minor bug where an anonymous
union with a deleted default constructor as a member of a union wasn't being
considered as making the outer union's default constructor deleted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 81710d2043..d3a31ede67 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -2276,7 +2276,7 @@ Sema::SpecialMemberOverloadResult *Sema::LookupSpecialMember(CXXRecordDecl *RD, CXXDestructorDecl *DD = RD->getDestructor(); assert(DD && "record without a destructor"); Result->setMethod(DD); - Result->setSuccess(DD->isDeleted()); + Result->setSuccess(!DD->isDeleted()); Result->setConstParamMatch(false); return Result; } |