From: Leonard Chan Date: Thu, 2 Dec 2021 19:45:41 +0000 (-0800) Subject: [compiler-rt] Fix incorrect variable names used X-Git-Tag: upstream/15.0.7~24177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=534d105e0334e6b468da6cad746abdb2d2fd3167;p=platform%2Fupstream%2Fllvm.git [compiler-rt] Fix incorrect variable names used --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp index 9b5f6f1..6fdf2c4 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp @@ -275,11 +275,11 @@ void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { } bool MprotectNoAccess(uptr addr, uptr size) { - return _zx_vmar_protect(_zx_vmar_root_self(), 0, Addr, Size) == ZX_OK; + return _zx_vmar_protect(_zx_vmar_root_self(), 0, addr, size) == ZX_OK; } bool MprotectReadOnly(uptr addr, uptr size) { - return _zx_vmar_protect(_zx_vmar_root_self(), ZX_VM_PERM_READ, Addr, Size) == + return _zx_vmar_protect(_zx_vmar_root_self(), ZX_VM_PERM_READ, addr, size) == ZX_OK; }