[PATCH] D62892: [Sanitizers] Fix sanitizer_posix_libcdep.cc compilation on Solaris 11.5
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 01:56:24 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL363778: [Sanitizers] Fix sanitizer_posix_libcdep.cc compilation on Solaris 11.5 (authored by ro, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D62892?vs=203094&id=205525#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62892/new/
https://reviews.llvm.org/D62892
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
@@ -70,7 +70,7 @@
bool NoHugePagesInRegion(uptr addr, uptr size) {
#ifdef MADV_NOHUGEPAGE // May not be defined on old systems.
- return madvise((void *)addr, size, MADV_NOHUGEPAGE) == 0;
+ return madvise((char *)addr, size, MADV_NOHUGEPAGE) == 0;
#else
return true;
#endif // MADV_NOHUGEPAGE
@@ -78,9 +78,9 @@
bool DontDumpShadowMemory(uptr addr, uptr length) {
#if defined(MADV_DONTDUMP)
- return madvise((void *)addr, length, MADV_DONTDUMP) == 0;
+ return madvise((char *)addr, length, MADV_DONTDUMP) == 0;
#elif defined(MADV_NOCORE)
- return madvise((void *)addr, length, MADV_NOCORE) == 0;
+ return madvise((char *)addr, length, MADV_NOCORE) == 0;
#else
return true;
#endif // MADV_DONTDUMP
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62892.205525.patch
Type: text/x-patch
Size: 1005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190619/9d4358d9/attachment.bin>
More information about the llvm-commits
mailing list