From fee7735cee09bae1719d7822049e2adffa3159bf Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 24 May 2017 19:11:12 +0000 Subject: [PATCH] Revert "Revert "Attempt to pacify ASan and UBSan reports in CrashRecovery tests"" This dependents on r303729 which was reverted. This reverts commit r303783. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303796 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/CrashRecoveryTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unittests/Support/CrashRecoveryTest.cpp b/unittests/Support/CrashRecoveryTest.cpp index e9ffd1f8871..33d87a1c0e4 100644 --- a/unittests/Support/CrashRecoveryTest.cpp +++ b/unittests/Support/CrashRecoveryTest.cpp @@ -17,6 +17,10 @@ #include #endif +extern "C" const char *__asan_default_options() { + return "allow_user_segv_handler=1"; +} + using namespace llvm; using namespace llvm::sys; -- 2.40.0