diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-11-16 15:55:38 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-11-16 15:55:38 +0000 |
| commit | 3dd7fe6d868a065061df9ede729878390fe67ef0 (patch) | |
| tree | 26015e844f5eb54054577b068ee8b2e85b6aba8f /compiler-rt | |
| parent | dd1b261f3a63bf287f01ac3628affeedce77663a (diff) | |
| download | bcm5719-llvm-3dd7fe6d868a065061df9ede729878390fe67ef0.tar.gz bcm5719-llvm-3dd7fe6d868a065061df9ede729878390fe67ef0.zip | |
tsan: replace macro check with constant check
As per comments in 252892 commit.
llvm-svn: 253216
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.cc b/compiler-rt/lib/tsan/rtl/tsan_flags.cc index 6c3e4a283f0..a3a018528a1 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.cc @@ -61,13 +61,13 @@ void InitializeFlags(Flags *f, const char *env) { CommonFlags cf; cf.CopyFrom(*common_flags()); cf.allow_addr2line = true; -#ifdef SANITIZER_GO - // Does not work as expected for Go: runtime handles SIGABRT and crashes. - cf.abort_on_error = false; - // Go does not have mutexes. -#else - cf.detect_deadlocks = true; -#endif + if (kGoMode) { + // Does not work as expected for Go: runtime handles SIGABRT and crashes. + cf.abort_on_error = false; + // Go does not have mutexes. + } else { + cf.detect_deadlocks = true; + } cf.print_suppressions = false; cf.stack_trace_format = " #%n %f %S %M"; cf.exitcode = 66; |

