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

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Sep 10 04:04:37 PDT 2013


Author: eugenis
Date: Tue Sep 10 06:04:37 2013
New Revision: 190402

URL: http://llvm.org/viewvc/llvm-project?rev=190402&view=rev
Log:
[msan] bool -> int to make msan_interface.h C-compatible.

Modified:
    compiler-rt/trunk/include/sanitizer/msan_interface.h
    compiler-rt/trunk/lib/msan/lit_tests/malloc_hook.cc
    compiler-rt/trunk/lib/msan/msan_allocator.cc
    compiler-rt/trunk/lib/msan/msan_interface_internal.h

Modified: compiler-rt/trunk/include/sanitizer/msan_interface.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/msan_interface.h?rev=190402&r1=190401&r2=190402&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/msan_interface.h (original)
+++ compiler-rt/trunk/include/sanitizer/msan_interface.h Tue Sep 10 06:04:37 2013
@@ -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). */

Modified: compiler-rt/trunk/lib/msan/lit_tests/malloc_hook.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/lit_tests/malloc_hook.cc?rev=190402&r1=190401&r2=190402&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/lit_tests/malloc_hook.cc (original)
+++ compiler-rt/trunk/lib/msan/lit_tests/malloc_hook.cc Tue Sep 10 06:04:37 2013
@@ -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;
 

Modified: compiler-rt/trunk/lib/msan/msan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_allocator.cc?rev=190402&r1=190401&r2=190402&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_allocator.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_allocator.cc Tue Sep 10 06:04:37 2013
@@ -149,7 +149,7 @@ uptr __msan_get_estimated_allocated_size
   return size;
 }
 
-bool __msan_get_ownership(const void *p) {
+int __msan_get_ownership(const void *p) {
   return AllocationSize(p) != 0;
 }
 

Modified: compiler-rt/trunk/lib/msan/msan_interface_internal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interface_internal.h?rev=190402&r1=190401&r2=190402&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interface_internal.h (original)
+++ compiler-rt/trunk/lib/msan/msan_interface_internal.h Tue Sep 10 06:04:37 2013
@@ -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);





More information about the llvm-commits mailing list