forked from OSchip/llvm-project
[msan] bool -> int to make msan_interface.h C-compatible.
llvm-svn: 190402
This commit is contained in:
parent
71665cd1fd
commit
df96e863de
|
@ -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). */
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue