Fix invalid code that Clang trunk will soon diagnose.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 15 Feb 2019 21:48:57 +0000 (21:48 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 15 Feb 2019 21:48:57 +0000 (21:48 +0000)
commit1dcff8d17ca44abb090ed38d3ef70d25c8e3465c
treed2f5cad2c630dddca2fedf4c24c62383f6c0b463
parent35b007e9a9f272d8570ec1009e1e7cb0aa064600
Fix invalid code that Clang trunk will soon diagnose.

There is an ambiguity between ::SizeClassMap (the typedef declared near
the start of this file) and __sanitizer::SizeClassMap (found by the
'using namespace __sanitizer;' near the start of this file).

Historically a Clang bug has meant that the error was not diagnosed, but
soon Clang will start diagnosing it. Explicitly qualify this use of
SizeClassMap so that it finds __sanitizer::SizeClassMap rather than
being ill-formed due to ambiguity.

llvm-svn: 354174
compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc