[PATCH] D35032: [sanitizer] Use TASK_VM_INFO to get the maximum VM address on iOS/AArch64

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 5 16:54:56 PDT 2017


eugenis added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_mac.cc:812
+  if (err == 0) {
+    return *(uptr *)(&vm_info[kTaskVmInfoMaxAddressOffset]) - 1;
+  } else {
----------------
Why use pointer cast, and not just load an integer_t and static_cast to uptr? Are they always the same width?



Repository:
  rL LLVM

https://reviews.llvm.org/D35032





More information about the llvm-commits mailing list