]> granicus.if.org Git - clang/commit
Replace a destructor of EHCleanupScope with a Destroy() method to reflect the current...
authorKostya Serebryany <kcc@google.com>
Wed, 8 Oct 2014 18:31:54 +0000 (18:31 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 8 Oct 2014 18:31:54 +0000 (18:31 +0000)
commit43992fe7b17de5553ac06d323cb80cc6723a9ae3
treeb8a4bc98cf6b9d3104b0c4b423a8778ee7ca4900
parent3dc3287b2c07e2ddb8f0d5d0db1cac605cb3651a
Replace a destructor of EHCleanupScope with a Destroy() method to reflect the current usage.

Summary:
The current code uses memset to re-initialize EHCleanupScope objects
with breaks the assumptions of the upcoming asan's intra-object-overflow checker.
If there is no DTOR, the new checker will refuse to work.

Test Plan: bootstrap with asan

Reviewers: rnk

Reviewed By: rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D5656

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219331 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCleanup.cpp
lib/CodeGen/CGCleanup.h