Fix MSan annotations inclusion guard.

#cmakedefine does not behave the way I though it was.

llvm-svn: 175050
This commit is contained in:
Evgeniy Stepanov 2013-02-13 10:40:01 +00:00
parent 32214a2587
commit 5992fb5601
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)