]> granicus.if.org Git - clang/commit
[EH] Fix for clang bug 24005 - no cleanup for array of memcpy-able objects in struct...
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 8 Jul 2015 07:31:02 +0000 (07:31 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 8 Jul 2015 07:31:02 +0000 (07:31 +0000)
commit93ea4643bdacc8e2fe229b69f06ac9fa96e03313
treea9ca2c4bad43ae83b8b9db9ea486705272e08d50
parent4aee30fb7b0cc5ab808f8070e80c887ae31fb81d
[EH] Fix for clang bug 24005 - no cleanup for array of memcpy-able objects in struct (patch by Denis Zobnin)

The fix is to emit cleanup for arrays of memcpy-able objects in struct if an exception is thrown later during copy-construction.
Differential Revision: http://reviews.llvm.org/D10989

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241670 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
test/CodeGenCXX/eh-aggregate-copy-destroy.cpp [new file with mode: 0644]