summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/unittests/Support/CrashRecoveryTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/Support/CrashRecoveryTest.cpp b/llvm/unittests/Support/CrashRecoveryTest.cpp
index e9ffd1f8871..33d87a1c0e4 100644
--- a/llvm/unittests/Support/CrashRecoveryTest.cpp
+++ b/llvm/unittests/Support/CrashRecoveryTest.cpp
@@ -17,6 +17,10 @@
#include <windows.h>
#endif
+extern "C" const char *__asan_default_options() {
+ return "allow_user_segv_handler=1";
+}
+
using namespace llvm;
using namespace llvm::sys;
OpenPOWER on IntegriCloud