]> granicus.if.org Git - clang/commit
Fix tracking of whether a destructor would be deleted.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 22 Sep 2017 01:04:22 +0000 (01:04 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 22 Sep 2017 01:04:22 +0000 (01:04 +0000)
commit1bdee855b52369afe479fba61ce6af926d427c61
tree1cc3c03f4c18e62bfa7f2f847b34765ca1a58b80
parentd6b1e9271c5c8ab378dfc5dfefdc2b3593f14f13
Fix tracking of whether a destructor would be deleted.

I've been unable to find any cases whose behavior is actually changed by this,
but only because an implicitly deleted destructor also results in it being
impossible to have a trivial (non-deleted) copy constructor, which the place
where this really matters (choosing whether to pass a class in registers)
happens to also check.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313948 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
lib/Sema/SemaDecl.cpp
test/CXX/special/class.dtor/p5-implicit.cpp [new file with mode: 0644]