[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.
This commit is contained in:
Roman Lebedev 2021-07-09 13:11:16 +03:00
parent 47653db6d2
commit a72a441812
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
static void __declspec(noinline) CrashOnProcessDetach() { static void __declspec(noinline) CrashOnProcessDetach() {
printf("CrashOnProcessDetach\n"); printf("CrashOnProcessDetach\n");
fflush(stdout); fflush(stdout);
*static_cast<volatile int *>(0) = 0x356; __builtin_trap();
} }
bool g_is_child = false; bool g_is_child = false;