[asan] Fix wrong __ANDROID_API__ preprocessor condition.

This fixes report symbolization on L devices when building for API
level 21 or 22.

llvm-svn: 243787
This commit is contained in:
Evgeniy Stepanov 2015-07-31 21:35:15 +00:00
parent 20a1d76b6d
commit fef29821a7
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ extern "C" __attribute__((weak)) int dl_iterate_phdr(
uptr GetListOfModules(LoadedModule *modules, uptr max_modules,
string_predicate_t filter) {
#if SANITIZER_ANDROID && __ANDROID_API__ < 21
#if SANITIZER_ANDROID && __ANDROID_API__ <= 22
u32 api_level = AndroidGetApiLevel();
// Fall back to /proc/maps if dl_iterate_phdr is unavailable or broken.
// The runtime check allows the same library to work with