diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-10 23:08:06 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-10 23:08:06 +0000 |
commit | c93b8e2c89593fdcc06ac0782584a422dec773ef (patch) | |
tree | 66f37b9626f5747a9fd5faaf84addebb762e5ada /lib/tsan/rtl/tsan_sync.cc | |
parent | 929e9dd48e5b7f123e5e2d439e113050382ef495 (diff) |
[TSan] Use common flags in the same way as all the other sanitizers
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_sync.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_sync.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/rtl/tsan_sync.cc b/lib/tsan/rtl/tsan_sync.cc index 9cc778947..1041073be 100644 --- a/lib/tsan/rtl/tsan_sync.cc +++ b/lib/tsan/rtl/tsan_sync.cc @@ -32,7 +32,7 @@ void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { creation_stack_id = 0; if (kCppMode) // Go does not use them creation_stack_id = CurrentStackId(thr, pc); - if (flags()->detect_deadlocks) + if (common_flags()->detect_deadlocks) DDMutexInit(thr, pc, this); } |