diff options
author | Kostya Serebryany <kcc@google.com> | 2014-10-27 19:34:10 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-10-27 19:34:10 +0000 |
commit | 68c29da4c5a6e3f5443c3b2bfc0ee6d2f44002c8 (patch) | |
tree | 05caadf46f08fe3ea8eb742f9aedd478550c6571 /llvm/lib/Support/Unix/Program.inc | |
parent | aae76493f0d5d8c2858ea70f950366feb759d9ab (diff) | |
download | bcm5719-llvm-68c29da4c5a6e3f5443c3b2bfc0ee6d2f44002c8.tar.gz bcm5719-llvm-68c29da4c5a6e3f5443c3b2bfc0ee6d2f44002c8.zip |
Do not insert asan paddings after fields that have flexible arrays.
Summary:
We should avoid a tail padding not only if the last field
has zero size but also if the last field is a struct with a flexible array.
If/when http://reviews.llvm.org/D5478 is committed,
this will also handle the case of structs with zero-sized arrays.
Reviewers: majnemer, rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D5924
llvm-svn: 220708
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
0 files changed, 0 insertions, 0 deletions