mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-17 05:31:32 +00: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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228738 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7741851819
commit
7bddff5443
@ -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…
x
Reference in New Issue
Block a user