forked from OSchip/llvm-project
[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:
parent
20a1d76b6d
commit
fef29821a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue