From: Aaron Ballman Date: Tue, 10 Feb 2015 20:13:52 +0000 (+0000) Subject: Changing the status code generated by LLVM_BUILTIN_TRAP on Windows to be something... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7bddff5443f7fae98d77df42d5ae3b73667c0e3b;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 536f02ff5b8..e0a4e1fc18e 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -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