ClickHouse/dbms/src/Common/MemorySanitizer.h

14 lines
344 B
C++
Raw Normal View History

2019-09-12 11:40:01 +00:00
#pragma once
#define __msan_unpoison(X, Y)
2019-09-27 13:44:33 +00:00
#define __msan_test_shadow(X, Y) (false)
#define __msan_print_shadow(X, Y)
2019-09-12 11:40:01 +00:00
#if defined(__has_feature)
# if __has_feature(memory_sanitizer)
# undef __msan_unpoison
2019-09-27 13:44:33 +00:00
# undef __msan_test_shadow
# undef __msan_print_shadow
2019-09-12 11:40:01 +00:00
# include <sanitizer/msan_interface.h>
# endif
#endif