summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan_common.cc
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-05-25 19:55:44 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-05-25 19:55:44 +0000
commit963904ec1f640dc7151684f029fd3348f0c5bf3c (patch)
tree0c341f07bbf5a6de01bf82d5837623b3c359e5b7 /lib/lsan/lsan_common.cc
parent2319b5f3cb1ad942ea66e7aae0e4aa3b56f4bc5e (diff)
Fix typo in tls patch
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@303906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan_common.cc')
-rw-r--r--lib/lsan/lsan_common.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsan/lsan_common.cc b/lib/lsan/lsan_common.cc
index 9f862ac96..a5ffc6835 100644
--- a/lib/lsan/lsan_common.cc
+++ b/lib/lsan/lsan_common.cc
@@ -270,7 +270,7 @@ static void ProcessThreads(SuspendedThreadsList const &suspended_threads,
// If the tls and cache ranges don't overlap, scan full tls range,
// otherwise, only scan the non-overlapping portions
if (cache_begin == cache_end || tls_end < cache_begin ||
- tls_end > cache_end) {
+ tls_begin > cache_end) {
ScanRangeForPointers(tls_begin, tls_end, frontier, "TLS", kReachable);
} else {
if (tls_begin < cache_begin)