forked from OSchip/llvm-project
Changing the status code generated by LLVM_BUILTIN_TRAP on Windows to be something categorized as a valid error code. Fixes crashing uses (such as not --crash) with existing sys::Wait behavior.
llvm-svn: 228738
This commit is contained in:
parent
b3fa86d6f3
commit
6ede1e8080
|
@ -297,7 +297,7 @@ extern "C" __declspec(dllimport) void __stdcall RaiseException(
|
|||
#endif
|
||||
# define LLVM_BUILTIN_TRAP \
|
||||
do { \
|
||||
::RaiseException(0xDEADD0D0, 0x1 /*EXCEPTION_NONCONTINUABLE*/, 0, nullptr);\
|
||||
::RaiseException(0x8000DEAD, 0x1 /*EXCEPTION_NONCONTINUABLE*/, 0, nullptr);\
|
||||
__assume(false); \
|
||||
} while (0)
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue