Don't assume that there is only one strchr overload in the global namespace;
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 Feb 2016 20:02:04 +0000 (20:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 Feb 2016 20:02:04 +0000 (20:02 +0000)
commit7814f7dafdb9f1afaf8078d37f62d01109ebbf0a
tree0cb8c51b9f3986cf0b0f5b242ff7ef858bf8e5dd
parent2287dc3bf8a937330a1f35156067fda550f50bb6
Don't assume that there is only one strchr overload in the global namespace;
that's not true in general. Instead, use a preference order to pick the
standard C++ signature 'char*(char*, int)' where possible and fall back to the
C signature 'char*(const char*, int)' only when it's unavailable.

llvm-svn: 260425
compiler-rt/lib/asan/tests/asan_str_test.cc