diff options
author | Kostya Serebryany <kcc@google.com> | 2016-04-22 23:46:53 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-04-22 23:46:53 +0000 |
commit | b7929de0c627ec83d53e98f60e5d021027cdb396 (patch) | |
tree | 661fbeb2e0480ab39fc0de332df824d9cf59b0e1 /lib/msan | |
parent | dbc8cc0811b459e5155d7cc8872134c4011e0fce (diff) | |
download | compiler-rt-b7929de0c627ec83d53e98f60e5d021027cdb396.tar.gz |
[sanitizer] rename MmapNoAccess to MmapFixedNoAccess; NFC
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan')
-rw-r--r-- | lib/msan/msan_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msan/msan_linux.cc b/lib/msan/msan_linux.cc index ab3be91fc..d6a95889a 100644 --- a/lib/msan/msan_linux.cc +++ b/lib/msan/msan_linux.cc @@ -55,14 +55,14 @@ static bool CheckMemoryRangeAvailability(uptr beg, uptr size) { static bool ProtectMemoryRange(uptr beg, uptr size, const char *name) { if (size > 0) { - void *addr = MmapNoAccess(beg, size, name); + void *addr = MmapFixedNoAccess(beg, size, name); if (beg == 0 && addr) { // Depending on the kernel configuration, we may not be able to protect // the page at address zero. uptr gap = 16 * GetPageSizeCached(); beg += gap; size -= gap; - addr = MmapNoAccess(beg, size, name); + addr = MmapFixedNoAccess(beg, size, name); } if ((uptr)addr != beg) { uptr end = beg + size - 1; |