diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-11-30 20:02:11 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-11-30 20:02:11 +0000 |
commit | e993dac233584cdae6275ebee19f755412b3baa1 (patch) | |
tree | 042f321e50c437f8d8b29d44c6ddf09e861ad249 /compiler-rt/lib/tsan/rtl/tsan_rtl.cc | |
parent | 406ea51cfbb027162e3df2c7d13fd515018e8d76 (diff) | |
download | bcm5719-llvm-e993dac233584cdae6275ebee19f755412b3baa1.tar.gz bcm5719-llvm-e993dac233584cdae6275ebee19f755412b3baa1.zip |
tsan: fix int overflow and several instances where tid is used with ignore
llvm-svn: 169029
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl.cc')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc index 26ad7847bf9..b29fe602730 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc @@ -359,7 +359,7 @@ static inline bool OldIsInSameSynchEpoch(Shadow old, ThreadState *thr) { } static inline bool HappensBefore(Shadow old, ThreadState *thr) { - return thr->clock.get(old.tid()) >= old.epoch(); + return thr->clock.get(old.TidWithIgnore()) >= old.epoch(); } ALWAYS_INLINE |