summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-09-07 15:50:19 +0000
committerAlexander Potapenko <glider@google.com>2012-09-07 15:50:19 +0000
commit38c3f9ef2fbb3536d8d17f1c1e1b793385b438da (patch)
tree9d5bf8d12675c6b7c277478282ab3809073d75d6
parentc5adb8a70066c1a33bb1c44891aa766a4c5e4f2d (diff)
downloadbcm5719-llvm-38c3f9ef2fbb3536d8d17f1c1e1b793385b438da.tar.gz
bcm5719-llvm-38c3f9ef2fbb3536d8d17f1c1e1b793385b438da.zip
Remove the infinite recursion check for now, as we don't have __thread on Mac, and TSD is an overkill.
llvm-svn: 163393
-rw-r--r--compiler-rt/lib/asan/asan_rtl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc
index 34b84f4d1be..5fa4d65129d 100644
--- a/compiler-rt/lib/asan/asan_rtl.cc
+++ b/compiler-rt/lib/asan/asan_rtl.cc
@@ -53,9 +53,7 @@ SANITIZER_INTERFACE_ATTRIBUTE
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();
}
OpenPOWER on IntegriCloud