[compiler-rt] a72a441 - [compiler-rt][ASAN] Speculatively fix Windows/dll_control_c.cpp test - use trap
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 9 03:11:49 PDT 2021
Author: Roman Lebedev
Date: 2021-07-09T13:11:27+03:00
New Revision: a72a44181264fd83e05be958c2712cbd4560aba7
URL: https://github.com/llvm/llvm-project/commit/a72a44181264fd83e05be958c2712cbd4560aba7
DIFF: https://github.com/llvm/llvm-project/commit/a72a44181264fd83e05be958c2712cbd4560aba7.diff
LOG: [compiler-rt][ASAN] Speculatively fix Windows/dll_control_c.cpp test - use trap
Please refer to https://reviews.llvm.org/D105338,
such store will not trap, it will be removed.
Added:
Modified:
compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp b/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp
index e30276325dbd..f7c81e0065e6 100644
--- a/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp
+++ b/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cpp
@@ -12,7 +12,7 @@
static void __declspec(noinline) CrashOnProcessDetach() {
printf("CrashOnProcessDetach\n");
fflush(stdout);
- *static_cast<volatile int *>(0) = 0x356;
+ __builtin_trap();
}
bool g_is_child = false;
More information about the llvm-commits
mailing list