[compiler-rt] r258202 - Fix another -Wexpansion-to-defined warning in compiler-rt.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 14:07:55 PST 2016
Author: nico
Date: Tue Jan 19 16:07:55 2016
New Revision: 258202
URL: http://llvm.org/viewvc/llvm-project?rev=258202&view=rev
Log:
Fix another -Wexpansion-to-defined warning in compiler-rt.
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h?rev=258202&r1=258201&r2=258202&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h Tue Jan 19 16:07:55 2016
@@ -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 {
More information about the llvm-commits
mailing list