diff options
author | Petr Hosek <phosek@chromium.org> | 2019-01-06 05:19:05 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-01-06 05:19:05 +0000 |
commit | 5c43496fa303622194d46ce7d2bc34ccc630c8a2 (patch) | |
tree | 7743c1777326aab6b2212810003f760c6007c65c | |
parent | 4fc8c44382b4b1514e3f4d5e62b4bfee3b6b7e82 (diff) | |
download | bcm5719-llvm-5c43496fa303622194d46ce7d2bc34ccc630c8a2.tar.gz bcm5719-llvm-5c43496fa303622194d46ce7d2bc34ccc630c8a2.zip |
[compiler-rt][Fuchsia] Replace _zx_vmar_allocate_old call
This is the deprecated legacy interface, replace it with the current
_zx_vmar_allocate one.
Differential Revision: https://reviews.llvm.org/D56360
llvm-svn: 350488
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc index 8c525237baf..2c259b6cd7d 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc @@ -210,10 +210,10 @@ uptr ReservedAddressRange::Init(uptr init_size, const char *name, uintptr_t base; zx_handle_t vmar; zx_status_t status = - _zx_vmar_allocate_old(_zx_vmar_root_self(), 0, init_size, - ZX_VM_FLAG_CAN_MAP_READ | ZX_VM_FLAG_CAN_MAP_WRITE | - ZX_VM_FLAG_CAN_MAP_SPECIFIC, - &vmar, &base); + _zx_vmar_allocate( + _zx_vmar_root_self(), + ZX_VM_CAN_MAP_READ | ZX_VM_CAN_MAP_WRITE | ZX_VM_CAN_MAP_SPECIFIC, + 0, init_size, &vmar, &base); if (status != ZX_OK) ReportMmapFailureAndDie(init_size, name, "zx_vmar_allocate", status); base_ = reinterpret_cast<void *>(base); |