[sanitizer] Restrict querying VM size on Darwin only to iOS devices
authorKuba Mracek <mracek@apple.com>
Mon, 14 Dec 2020 18:48:48 +0000 (10:48 -0800)
committerKuba Mracek <mracek@apple.com>
Mon, 14 Dec 2020 18:48:48 +0000 (10:48 -0800)
commitf276c008984dd02bb54707b2ace858cac5412e7e
tree44f2388db251f221c53c2e45ae7fff49aa03f6d6
parent8955e9f6b75d436f92235531f003540401cd4b30
[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
compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp