[PATCH] D86166: sanitizer_common: Use void* for madvise first argument on Solaris.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 13:11:01 PDT 2020
pcc created this revision.
pcc added a reviewer: ro.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
pcc requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86166
Files:
compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp
@@ -76,10 +76,10 @@
// Illumos' declaration of madvise cannot be made visible if _XOPEN_SOURCE
// is defined as g++ does on Solaris.
-extern "C" int madvise(caddr_t, size_t, int);
+extern "C" int madvise(void *, size_t, int);
int internal_madvise(uptr addr, uptr length, int advice) {
- return madvise((caddr_t)addr, length, advice);
+ return madvise((void *)addr, length, advice);
}
DECLARE__REAL_AND_INTERNAL(uptr, close, fd_t fd) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86166.286381.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200818/c0218395/attachment.bin>
More information about the llvm-commits
mailing list