Remove the infinite recursion check for now, as we don't have __thread on Mac, and TSD is an overkill.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163393 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_rtl.cc b/lib/asan/asan_rtl.cc
index 34b84f4..5fa4d65 100644
--- a/lib/asan/asan_rtl.cc
+++ b/lib/asan/asan_rtl.cc
@@ -53,9 +53,7 @@
 void CheckFailed(const char *file, int line, const char *cond, u64 v1, u64 v2) {
   Report("AddressSanitizer CHECK failed: %s:%d \"%s\" (0x%zx, 0x%zx)\n",
              file, line, cond, (uptr)v1, (uptr)v2);
-  static __thread int recursion_count = 0;
-  RAW_CHECK_MSG(recursion_count == 0, "Infinite recursion detected in CHECK\n");
-  recursion_count++;
+  // FIXME: check for infinite recursion without a thread-local counter here.
   PRINT_CURRENT_STACK();
   ShowStatsAndAbort();
 }