forked from OSchip/llvm-project
[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:
parent
47653db6d2
commit
a72a441812
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue