From 963904ec1f640dc7151684f029fd3348f0c5bf3c Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Thu, 25 May 2017 19:55:44 +0000 Subject: Fix typo in tls patch git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@303906 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/lsan/lsan_common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/lsan/lsan_common.cc') 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) -- cgit v1.2.3