[compiler-rt] 534d105 - [compiler-rt] Fix incorrect variable names used
Leonard Chan via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 2 11:46:58 PST 2021
Author: Leonard Chan
Date: 2021-12-02T11:46:50-08:00
New Revision: 534d105e0334e6b468da6cad746abdb2d2fd3167
URL: https://github.com/llvm/llvm-project/commit/534d105e0334e6b468da6cad746abdb2d2fd3167
DIFF: https://github.com/llvm/llvm-project/commit/534d105e0334e6b468da6cad746abdb2d2fd3167.diff
LOG: [compiler-rt] Fix incorrect variable names used
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp
index 9b5f6f1da1a1..6fdf2c424ba5 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;
}
More information about the llvm-commits
mailing list