diff options
author | Kuba Mracek <mracek@apple.com> | 2020-12-14 10:48:48 -0800 |
---|---|---|
committer | Kuba (Brecka) Mracek <mracek@apple.com> | 2020-12-15 12:17:46 -0800 |
commit | 5c30b2e0469c711e148ae1e5bc630269626af46d (patch) | |
tree | c857328e632d394a946ff55aac63d0facbd4644d | |
parent | 9e6927ba6c5374bdff90762db94548cfcd496d81 (diff) | |
download | llvm-5c30b2e0469c711e148ae1e5bc630269626af46d.tar.gz |
[sanitizer] Restrict querying VM size on Darwin only to iOS devices
We currently do this for SANITIZER_IOS, which includes devices *and* simulators. This change opts out the check for simulators to unify the behavior with macOS, because VM size is really a property of the host OS, and not the simulator.
<rdar://problem/72129387>
Differential Revision: https://reviews.llvm.org/D93140
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp index 7a3dfbcc2760..e11c62073543 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp @@ -1003,7 +1003,7 @@ char **GetArgv() { return *_NSGetArgv(); } -#if SANITIZER_IOS +#if SANITIZER_IOS && !SANITIZER_IOSSIM // The task_vm_info struct is normally provided by the macOS SDK, but we need // fields only available in 10.12+. Declare the struct manually to be able to // build against older SDKs. |