forked from OSchip/llvm-project
Fix MSan annotations inclusion guard.
#cmakedefine does not behave the way I though it was. llvm-svn: 175050
This commit is contained in:
parent
32214a2587
commit
5992fb5601
|
@ -125,6 +125,6 @@
|
|||
#cmakedefine LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR}
|
||||
|
||||
/* Define to 1 if you have the <sanitizer/msan_interface.h> header file. */
|
||||
#cmakedefine LLVM_HAVE_MSAN_ANNOTATIONS ${HAVE_SANITIZER_MSAN_INTERFACE_H}
|
||||
#cmakedefine HAVE_SANITIZER_MSAN_INTERFACE_H ${HAVE_SANITIZER_MSAN_INTERFACE_H}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -305,7 +305,7 @@
|
|||
# define LLVM_FUNCTION_NAME __func__
|
||||
#endif
|
||||
|
||||
#if defined(LLVM_HAVE_MSAN_ANNOTATIONS)
|
||||
#if defined(HAVE_SANITIZER_MSAN_INTERFACE_H)
|
||||
# include <sanitizer/msan_interface.h>
|
||||
#else
|
||||
# define __msan_allocated_memory(p, size)
|
||||
|
|
Loading…
Reference in New Issue