From 37df90a474a59fd1a9d94147fdd5e618774f72d9 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 6 Jan 2017 02:26:33 +0000 Subject: [PATCH] Revert "Use _Unwind_Backtrace on Apple platforms." This reverts commit 63165f6ae3bac1623be36d4b3ce63afa1d51a30a. After making this change, I discovered that _Unwind_Backtrace is unable to unwind past a signal handler after an assertion failure. I filed a bug report about that issue in rdar://29866587 but even if we get a fix soon, it will be awhile before it get released. llvm-svn: 291207 --- llvm/lib/Support/Unix/Signals.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc index 3750d7f4c09d..9752b70644c6 100644 --- a/llvm/lib/Support/Unix/Signals.inc +++ b/llvm/lib/Support/Unix/Signals.inc @@ -48,7 +48,7 @@ // _Unwind_Backtrace function, but on FreeBSD the configure test passes // despite the function not existing, and on Android, conflicts // with . -#if defined(__GLIBC__) || defined(__APPLE__) +#ifdef __GLIBC__ #include #else #undef HAVE__UNWIND_BACKTRACE