[compiler-rt] d9ede91 - [scudo] Fix type mismatch in trusty. (#69024)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 13:37:03 PDT 2023
Author: Christopher Ferris
Date: 2023-10-13T13:36:58-07:00
New Revision: d9ede91a27fe751fbe2afff14f450c11c24a3024
URL: https://github.com/llvm/llvm-project/commit/d9ede91a27fe751fbe2afff14f450c11c24a3024
DIFF: https://github.com/llvm/llvm-project/commit/d9ede91a27fe751fbe2afff14f450c11c24a3024.diff
LOG: [scudo] Fix type mismatch in trusty. (#69024)
Added:
Modified:
compiler-rt/lib/scudo/standalone/trusty.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/trusty.cpp b/compiler-rt/lib/scudo/standalone/trusty.cpp
index 26bc8e551ce45dd..26b349c6e506e37 100644
--- a/compiler-rt/lib/scudo/standalone/trusty.cpp
+++ b/compiler-rt/lib/scudo/standalone/trusty.cpp
@@ -62,7 +62,7 @@ void *map(void *Addr, uptr Size, const char *Name, uptr Flags,
void unmap(UNUSED void *Addr, UNUSED uptr Size, UNUSED uptr Flags,
UNUSED MapPlatformData *Data) {
if (_trusty_munmap(Addr, Size) != 0)
- reportUnmapError(Addr, Size);
+ reportUnmapError(reinterpret_cast<uptr>(Addr), Size);
}
void setMemoryPermission(UNUSED uptr Addr, UNUSED uptr Size, UNUSED uptr Flags,
More information about the llvm-commits
mailing list