[PATCH] D21254: [asan] Do not instrument pointers with address space attributes

Anna Zaks via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 18:35:08 PDT 2016


zaks.anna created this revision.
zaks.anna added reviewers: kcc, aizatsky, kubabrecka.
zaks.anna added a subscriber: llvm-commits.

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.)

http://reviews.llvm.org/D21254

Files:
  lib/Transforms/Instrumentation/AddressSanitizer.cpp
  lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  test/Instrumentation/AddressSanitizer/asan_address_space_attr.ll
  test/Instrumentation/ThreadSanitizer/tsan_address_space_attr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21254.60432.patch
Type: text/x-patch
Size: 4503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160611/a6eb75a0/attachment.bin>


More information about the llvm-commits mailing list