diff options
-rw-r--r-- | compiler-rt/include/sanitizer/msan_interface.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/msan/lit_tests/malloc_hook.cc | 2 | ||||
-rw-r--r-- | compiler-rt/lib/msan/msan_allocator.cc | 2 | ||||
-rw-r--r-- | compiler-rt/lib/msan/msan_interface_internal.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/include/sanitizer/msan_interface.h b/compiler-rt/include/sanitizer/msan_interface.h index e8427aed0c7..01120821c58 100644 --- a/compiler-rt/include/sanitizer/msan_interface.h +++ b/compiler-rt/include/sanitizer/msan_interface.h @@ -99,7 +99,7 @@ extern "C" { /* Returns true if p was returned by the Msan allocator and is not yet freed. */ - bool __msan_get_ownership(const void *p); + int __msan_get_ownership(const void *p); /* Returns the number of bytes reserved for the pointer p. Requires (get_ownership(p) == true) or (p == 0). */ diff --git a/compiler-rt/lib/msan/lit_tests/malloc_hook.cc b/compiler-rt/lib/msan/lit_tests/malloc_hook.cc index 5e7e7dc857e..fc68fbc35fb 100644 --- a/compiler-rt/lib/msan/lit_tests/malloc_hook.cc +++ b/compiler-rt/lib/msan/lit_tests/malloc_hook.cc @@ -4,7 +4,7 @@ #include <unistd.h> extern "C" { -bool __msan_get_ownership(const void *p); +int __msan_get_ownership(const void *p); void *global_ptr; diff --git a/compiler-rt/lib/msan/msan_allocator.cc b/compiler-rt/lib/msan/msan_allocator.cc index 7b989decb14..050a55c50eb 100644 --- a/compiler-rt/lib/msan/msan_allocator.cc +++ b/compiler-rt/lib/msan/msan_allocator.cc @@ -149,7 +149,7 @@ uptr __msan_get_estimated_allocated_size(uptr size) { return size; } -bool __msan_get_ownership(const void *p) { +int __msan_get_ownership(const void *p) { return AllocationSize(p) != 0; } diff --git a/compiler-rt/lib/msan/msan_interface_internal.h b/compiler-rt/lib/msan/msan_interface_internal.h index c8f51138d04..4c919e67c73 100644 --- a/compiler-rt/lib/msan/msan_interface_internal.h +++ b/compiler-rt/lib/msan/msan_interface_internal.h @@ -146,7 +146,7 @@ SANITIZER_INTERFACE_ATTRIBUTE uptr __msan_get_estimated_allocated_size(uptr size); SANITIZER_INTERFACE_ATTRIBUTE -bool __msan_get_ownership(const void *p); +int __msan_get_ownership(const void *p); SANITIZER_INTERFACE_ATTRIBUTE uptr __msan_get_allocated_size(const void *p); |