This is an archive of the discontinued LLVM Phabricator instance.

Replace a destructor of EHCleanupScope with a Destroy() method to reflect the current usage.
ClosedPublic

Authored by kcc on Oct 7 2014, 5:50 PM.

Details

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.

Diff Detail

Event Timeline

kcc updated this revision to Diff 14541.Oct 7 2014, 5:50 PM
kcc retitled this revision from to Replace a destructor of EHCleanupScope with a Destroy() method to reflect the current usage..
kcc updated this object.
kcc edited the test plan for this revision. (Show Details)
kcc added a reviewer: rnk.
kcc added a subscriber: Unknown Object (MLST).
rnk accepted this revision.Oct 7 2014, 6:10 PM
rnk edited edge metadata.

lgtm

lib/CodeGen/CGCleanup.h
287

This needs LLVM_DELETED_FUNCTION due to MSVC 2012.

This revision is now accepted and ready to land.Oct 7 2014, 6:10 PM
kcc updated this revision to Diff 14544.Oct 7 2014, 6:15 PM
kcc edited edge metadata.

use LLVM_DELETED_FUNCTION

kcc closed this revision.Oct 8 2014, 11:42 AM