]> granicus.if.org Git - clang/commit
Dtor callback emitted when msan attribute not repressed for this function.
authorNaomi Musgrave <nmusgrave@google.com>
Mon, 3 Aug 2015 22:53:11 +0000 (22:53 +0000)
committerNaomi Musgrave <nmusgrave@google.com>
Mon, 3 Aug 2015 22:53:11 +0000 (22:53 +0000)
commitccbefde95d2da751eae5660f55e978e42099d438
treedf057289681e058fbcb6b633759fc2e0b119ee60
parent14b0c6caf8f12547107d5891033072b1d2f589f8
Dtor callback emitted when msan attribute not repressed for this function.

Summary: In addition to checking compiler flags, the front-end also examines the attributes of the destructor definition to ensure that the SanitizeMemory attribute is attached.

Reviewers: eugenis, kcc

Subscribers: cfe-commits

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

refactored test into new file, revised how function attribute examined

modified test to examine default dtor with and without attribute

removed attribute check

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