Fix hwasan build.

Test: hwasan builds properly.
Change-Id: I3c911da08d1925b797423671e3beb72770a934b0
This commit is contained in:
Christopher Ferris 2019-02-13 22:15:28 -08:00
parent 1462d267e2
commit 883144719a

View file

@ -37,6 +37,18 @@
#if __has_feature(hwaddress_sanitizer)
#include <sanitizer/hwasan_interface.h>
__BEGIN_DECLS
// FIXME: implement these in HWASan allocator.
int __sanitizer_iterate(uintptr_t base, size_t size,
void (*callback)(uintptr_t base, size_t size, void* arg),
void* arg);
void __sanitizer_malloc_disable();
void __sanitizer_malloc_enable();
__END_DECLS
#define Malloc(function) __sanitizer_ ## function
#else // __has_feature(hwaddress_sanitizer)