[compiler-rt] r303906 - Fix typo in tls patch

Francis Ricci via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 12:55:45 PDT 2017


Author: fjricci
Date: Thu May 25 14:55:44 2017
New Revision: 303906

URL: http://llvm.org/viewvc/llvm-project?rev=303906&view=rev
Log:
Fix typo in tls patch

Modified:
    compiler-rt/trunk/lib/lsan/lsan_common.cc

Modified: compiler-rt/trunk/lib/lsan/lsan_common.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_common.cc?rev=303906&r1=303905&r2=303906&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common.cc Thu May 25 14:55:44 2017
@@ -270,7 +270,7 @@ static void ProcessThreads(SuspendedThre
         // 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)




More information about the llvm-commits mailing list