]> granicus.if.org Git - clang/commit
Fix a lot of problems with the partial destruction of arrays:
authorJohn McCall <rjmccall@apple.com>
Mon, 11 Jul 2011 08:38:19 +0000 (08:38 +0000)
committerJohn McCall <rjmccall@apple.com>
Mon, 11 Jul 2011 08:38:19 +0000 (08:38 +0000)
commit2673c68aa58e277ebc755b71d81aca618cdedbf9
treebac33d78d7e725e30c528d0ac7503b7b6bf0cdaf
parent00d40eae546219786a74564fc0d95eab1978b82b
Fix a lot of problems with the partial destruction of arrays:
 - an off-by-one error in emission of irregular array limits for
   InitListExprs
 - use an EH partial-destruction cleanup within the normal
   array-destruction cleanup
 - get the branch destinations right for the empty check
Also some refactoring which unfortunately obscures these changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134890 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/destructors.cpp
test/CodeGenCXX/partial-destruction.cpp [new file with mode: 0644]