OSDN Git Service

[asan] Do not instrument pointers with address space attributes
authorAnna Zaks <ganna@apple.com>
Wed, 22 Jun 2016 00:15:52 +0000 (00:15 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 22 Jun 2016 00:15:52 +0000 (00:15 +0000)
commitb523d2b232ab8b7011ae803990e93d54a12817f6
tree8b281074cb257f753565b9aa9da8df36c9d88e95
parent99e2e27b37142953f163c33c85203cfa3aa4687d
[asan] Do not instrument pointers with address space attributes

Do not instrument pointers with address space attributes since we cannot track
them anyway. Instrumenting them results in false positives in ASan and a
compiler crash in TSan. (The compiler should not crash in any case, but that's
a different problem.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273339 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
test/Instrumentation/AddressSanitizer/asan_address_space_attr.ll [new file with mode: 0644]
test/Instrumentation/ThreadSanitizer/tsan_address_space_attr.ll [new file with mode: 0644]