[llvm] r303796 - Revert "Revert "Attempt to pacify ASan and UBSan reports in CrashRecovery tests""

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 12:11:12 PDT 2017


Author: vitalybuka
Date: Wed May 24 14:11:12 2017
New Revision: 303796

URL: http://llvm.org/viewvc/llvm-project?rev=303796&view=rev
Log:
Revert "Revert "Attempt to pacify ASan and UBSan reports in CrashRecovery tests""

This dependents on r303729 which was reverted.

This reverts commit r303783.

Modified:
    llvm/trunk/unittests/Support/CrashRecoveryTest.cpp

Modified: llvm/trunk/unittests/Support/CrashRecoveryTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/CrashRecoveryTest.cpp?rev=303796&r1=303795&r2=303796&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/CrashRecoveryTest.cpp (original)
+++ llvm/trunk/unittests/Support/CrashRecoveryTest.cpp Wed May 24 14:11:12 2017
@@ -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;
 




More information about the llvm-commits mailing list