summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-18 02:02:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-18 02:02:13 +0000
commitd951a1d9c8fc0d4c6409dae93275515d076049ee (patch)
tree4ab3f7f87cebbb280810736cff059650b519b183 /clang/lib/Sema/SemaLookup.cpp
parent5056ab04ad14df500b58c077313505bdd02984b3 (diff)
downloadbcm5719-llvm-d951a1d9c8fc0d4c6409dae93275515d076049ee.tar.gz
bcm5719-llvm-d951a1d9c8fc0d4c6409dae93275515d076049ee.zip
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. llvm-svn: 150862
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r--clang/lib/Sema/SemaLookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 81710d2043f..d3a31ede670 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud