| Index: runtime/platform/memory_sanitizer.h
|
| diff --git a/runtime/platform/memory_sanitizer.h b/runtime/platform/memory_sanitizer.h
|
| index b9bd0590bad6bbba7126c8bcdf78d1ad599219b6..fe05ed1b38040f722faf681378ff926ed3672a8e 100644
|
| --- a/runtime/platform/memory_sanitizer.h
|
| +++ b/runtime/platform/memory_sanitizer.h
|
| @@ -13,11 +13,14 @@
|
| #if __has_feature(memory_sanitizer)
|
| extern "C" void __msan_unpoison(void *, size_t);
|
| #define MSAN_UNPOISON(ptr, len) __msan_unpoison(ptr, len)
|
| +#define NO_SANITIZE_MEMORY __attribute__((no_sanitize_memory))
|
| #else // __has_feature(memory_sanitizer)
|
| #define MSAN_UNPOISON(ptr, len) do {} while (false && (ptr) == 0 && (len) == 0)
|
| +#define NO_SANITIZE_MEMORY
|
| #endif // __has_feature(memory_sanitizer)
|
| #else // defined(__has_feature)
|
| #define MSAN_UNPOISON(ptr, len) do {} while (false && (ptr) == 0 && (len) == 0)
|
| +#define NO_SANITIZE_MEMORY
|
| #endif // defined(__has_feature)
|
|
|
| #endif // PLATFORM_MEMORY_SANITIZER_H_
|
|
|