No memcpy for copy ctor with -fsanitize-address-field-padding=1
authorKostya Serebryany <kcc@google.com>
Sat, 6 Dec 2014 01:23:08 +0000 (01:23 +0000)
committerKostya Serebryany <kcc@google.com>
Sat, 6 Dec 2014 01:23:08 +0000 (01:23 +0000)
commit597dcc7a8deb329037175f79bd0bd406a2aa880b
tree434cc54dc4f703875e2b20b6e09f094ce5eb0933
parentb36ba28d60b2e06c427f34bc7e0d0498707aff74
No memcpy for copy ctor with -fsanitize-address-field-padding=1

Summary:
When -fsanitize-address-field-padding=1 is present
don't emit memcpy for copy constructor.
Thanks Nico for the extra test case.

Test Plan: regression tests

Reviewers: thakis, rsmith

Reviewed By: rsmith

Subscribers: rsmith, cfe-commits

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

llvm-svn: 223563
clang/lib/CodeGen/CGClass.cpp
clang/test/CodeGen/sanitize-address-field-padding.cpp