[compiler-rt] r370011 - Fix buildbot
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 21:24:19 PDT 2019
Author: devnexen
Date: Mon Aug 26 21:24:19 2019
New Revision: 370011
URL: http://llvm.org/viewvc/llvm-project?rev=370011&view=rev
Log:
Fix buildbot
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h?rev=370011&r1=370010&r2=370011&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h Mon Aug 26 21:24:19 2019
@@ -100,7 +100,8 @@ void UnmapOrDie(void *addr, uptr size);
void *MmapOrDieOnFatalError(uptr size, const char *mem_type);
bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr)
WARN_UNUSED_RESULT;
-bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr)
+bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size,
+ const char *name = nullptr)
WARN_UNUSED_RESULT;
void *MmapNoReserveOrDie(uptr size, const char *mem_type);
void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp?rev=370011&r1=370010&r2=370011&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cpp Mon Aug 26 21:24:19 2019
@@ -304,11 +304,13 @@ void PlatformPrepareForSandboxing(__sani
MemoryMappingLayout::CacheMemoryMappings();
}
-static bool MmapFixed(uptr fixed_addr, uptr size, int additional_flags, const char *name) {
+static bool MmapFixed(uptr fixed_addr, uptr size,
+ int additional_flags, const char *name) {
size = RoundUpTo(size, GetPageSizeCached());
fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached());
uptr p = MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_FIXED | additional_flags | MAP_ANON, name);
+ MAP_PRIVATE | MAP_FIXED | additional_flags | MAP_ANON,
+ name);
int reserrno;
if (internal_iserror(p, &reserrno)) {
Report("ERROR: %s failed to "
@@ -334,7 +336,7 @@ bool MmapFixedSuperNoReserve(uptr fixed_
#else
bool r = MmapFixedNoReserve(fixed_addr, size, name);
if (r)
- SetShadowRegionHugePageMode(fixed_addr,size);
+ SetShadowRegionHugePageMode(fixed_addr, size);
return r;
#endif
}
More information about the llvm-commits
mailing list