]> granicus.if.org Git - clang/commit
ignore -mconstructor-aliases when adding field paddings for asan
authorKostya Serebryany <kcc@google.com>
Fri, 31 Oct 2014 19:01:02 +0000 (19:01 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 31 Oct 2014 19:01:02 +0000 (19:01 +0000)
commit083a9aac147fbf437d4f9079d6dd7acfbbdc71b5
tree27a5f32391ca04fac4aa017b12a3acfc8a25169b
parent7e92c17903a4bcf31e259bdaa276ffc55aeadf8e
ignore -mconstructor-aliases when adding field paddings for asan

Summary:
When we are adding field paddings for asan even an empty dtor has to remain in the code,
so we ignore -mconstructor-aliases if the paddings are going to be added.

Test Plan: added a test

Reviewers: rsmith, rnk, rafael

Reviewed By: rafael

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
test/CodeGen/sanitize-address-field-padding.cpp