[asan] Fix a false positive ODR violation due to LTO ConstantMerge pass [compiler...
authorKuba Mracek <mracek@apple.com>
Thu, 8 Mar 2018 17:24:47 +0000 (17:24 +0000)
committerKuba Mracek <mracek@apple.com>
Thu, 8 Mar 2018 17:24:47 +0000 (17:24 +0000)
commit653f94df536568e0ebad840c2d1dd035085213a8
tree8deb31d86f02ae14f84b558d676fff479c1f4540
parent0cdccf5f370353e59115d677391ad6a5cccffff1
[asan] Fix a false positive ODR violation due to LTO ConstantMerge pass [compiler-rt part]

This fixes a false positive ODR violation that is reported by ASan when using LTO. In cases, where two constant globals have the same value, LTO will merge them, which breaks ASan's ODR detection.

Differential Revision: https://reviews.llvm.org/D43959

llvm-svn: 327031
compiler-rt/test/asan/TestCases/Darwin/odr-lto.cc
compiler-rt/test/asan/TestCases/lto-constmerge-odr.cc [new file with mode: 0644]