guard include with has_feature
clang's sanitizer/msan_interface.h has fallback macros. It causes redefinition of __msan_unpoison().
This commit is contained in:
parent
3de03544ff
commit
fc3e80cf6d
@ -112,7 +112,9 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SANITIZER_MSAN_INTERFACE_H
|
#ifdef HAVE_SANITIZER_MSAN_INTERFACE_H
|
||||||
|
# if __has_feature(memory_sanitizer)
|
||||||
# include <sanitizer/msan_interface.h>
|
# include <sanitizer/msan_interface.h>
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !__has_feature(memory_sanitizer)
|
#if !__has_feature(memory_sanitizer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user