]> granicus.if.org Git - clang/commit
[clang/asan] Do not emit memcpy for trivial operator= when -fsanitize-address-field...
authorKostya Serebryany <kcc@google.com>
Tue, 11 Nov 2014 23:38:13 +0000 (23:38 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 11 Nov 2014 23:38:13 +0000 (23:38 +0000)
commitbe9aef8908ca9ba315bec0ba8956966f6f34cfae
treec4052add70221fe3a801852d83cb626182576db3
parentfafd75257dc5ff0e8a682aa822bb0e0abeb287e0
[clang/asan] Do not emit memcpy for trivial operator= when -fsanitize-address-field-padding >= 1

Summary: If we've added poisoned paddings to a type do not emit memcpy for operator=.

Test Plan: regression tests.

Reviewers: majnemer, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

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

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