[ASan] Don't instrument load/stores with !nosanitize metadata.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 17 Jul 2014 18:48:12 +0000 (18:48 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 17 Jul 2014 18:48:12 +0000 (18:48 +0000)
commit535b6f936157d6fec5b074a149200f81e6bcbb9d
tree3261f82af146c4ef15acf402ef4548f1eb9c84d9
parent24cad9930709a6448c4b23194ac06bf233ed18a6
[ASan] Don't instrument load/stores with !nosanitize metadata.

This is used to avoid instrumentation of instructions added by UBSan
in Clang frontend (see r213291). This fixes PR20085.

Reviewed in http://reviews.llvm.org/D4544.

llvm-svn: 213292
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/test/Instrumentation/AddressSanitizer/ubsan.ll [new file with mode: 0644]