[asan] enable detect_odr_violation=2; https://code.google.com/p/address-sanitizer...
authorKostya Serebryany <kcc@google.com>
Tue, 3 Jun 2014 15:06:13 +0000 (15:06 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 3 Jun 2014 15:06:13 +0000 (15:06 +0000)
commit7d4fc2c6a7300600d078e62f0a67e55c2c37145a
tree8f1be23a149b4dd6da2945313bb95a8f4cb11da9
parent28e7ed12f58dadbb40038be41e7301ac070117f5
[asan] enable detect_odr_violation=2; https://code.google.com/p/address-sanitizer/wiki/OneDefinitionRuleViolation . This feature has been working quite well so far, found a few bugs and zero false positives. The main problem is that there could be lots of true positives and users will have to disable this checking until the bugs are fixed.

llvm-svn: 210106
compiler-rt/lib/asan/asan_rtl.cc
compiler-rt/test/asan/TestCases/Linux/odr-violation.cc