[msan] bool -> int to make msan_interface.h C-compatible.

llvm-svn: 190402
This commit is contained in:
Evgeniy Stepanov 2013-09-10 11:04:37 +00:00
parent 71665cd1fd
commit df96e863de
4 changed files with 4 additions and 4 deletions

View File

@ -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). */

View File

@ -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;

View File

@ -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;
}

View File

@ -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);