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 b3fa86d6f3
commit 6ede1e8080
1 changed files with 1 additions and 1 deletions

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