Fix typo in tls patch
authorFrancis Ricci <francisjricci@gmail.com>
Thu, 25 May 2017 19:55:44 +0000 (19:55 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Thu, 25 May 2017 19:55:44 +0000 (19:55 +0000)
llvm-svn: 303906

compiler-rt/lib/lsan/lsan_common.cc

index 9f862ac..a5ffc68 100644 (file)
@@ -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)