[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)
commit30ea42931afa3d9cad3c00ea5df1b41a703555cb
treed8a4258e13c3e6ae9d982fab044f552e6bbbd3da
parentc636a42d4a72e8f6017298787b07a6ef0019bed8
[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.

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