From 72f564f8185b671cab6cd49c7be3ea0b4aa3d454 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 19 Jan 2016 22:07:55 +0000 Subject: [PATCH] Fix another -Wexpansion-to-defined warning in compiler-rt. llvm-svn: 258202 --- compiler-rt/lib/tsan/rtl/tsan_defs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_defs.h b/compiler-rt/lib/tsan/rtl/tsan_defs.h index 9c7b329dcf00..6d2eba6a0d66 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_defs.h +++ b/compiler-rt/lib/tsan/rtl/tsan_defs.h @@ -29,7 +29,11 @@ #endif #ifndef TSAN_CONTAINS_UBSAN -# define TSAN_CONTAINS_UBSAN (CAN_SANITIZE_UB && !defined(SANITIZER_GO)) +# if CAN_SANITIZE_UB && !defined(SANITIZER_GO) +# define TSAN_CONTAINS_UBSAN 1 +# else +# define TSAN_CONTAINS_UBSAN 0 +# endif #endif namespace __tsan {