1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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:
Aaron Ballman 2015-02-10 20:13:52 +00:00
parent fff974fc6d
commit 39da612547

View File

@ -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