Skip to content

Commit 5c30b2e

Browse files
committed
[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
1 parent 9e6927b commit 5c30b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ char **GetArgv() {
10031003
return *_NSGetArgv();
10041004
}
10051005

1006-
#if SANITIZER_IOS
1006+
#if SANITIZER_IOS && !SANITIZER_IOSSIM
10071007
// The task_vm_info struct is normally provided by the macOS SDK, but we need
10081008
// fields only available in 10.12+. Declare the struct manually to be able to
10091009
// build against older SDKs.

0 commit comments

Comments
 (0)