]> granicus.if.org Git - clang/commit
PR10304: Do not call destructors for data members from union destructors. Prior to...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 18 Sep 2011 12:11:43 +0000 (12:11 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 18 Sep 2011 12:11:43 +0000 (12:11 +0000)
commit416f63e42d4c34a38833a3aa8fa1ebb3c847722b
treef617f797454cc56cd7a4fc559cf59f22bd531f2a
parentc115f630b748b2f27cff34137fb6a50b10a471a5
PR10304: Do not call destructors for data members from union destructors. Prior to C++11, this
has no effect since any such destructors must be trivial, and in C++11 such destructors must not
be called.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139997 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/union-dtor.cpp [new file with mode: 0644]