]> granicus.if.org Git - clang/commit
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)
commit2fb9480c2e7382956724d9f6255db075a2134609
tree3507aa34ebea5ad01ac90c774965a8b95bb008bf
parentf41e52c88048213f5b1158c17d1c5ae752d09f56
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

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