forked from OSchip/llvm-project
All signal handlers are required to have C language linkage in C++. This does not fix all signal handlers, but does fix the most recent one.
llvm-svn: 227490
This commit is contained in:
parent
0652066c8d
commit
03b968e898
|
@ -196,7 +196,7 @@ static int AvoidMessageBoxHook(int ReportType, char *Message, int *Return) {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void HandleAbort(int Sig) {
|
extern "C" void HandleAbort(int Sig) {
|
||||||
if (Sig == SIGABRT) {
|
if (Sig == SIGABRT) {
|
||||||
LLVM_BUILTIN_TRAP;
|
LLVM_BUILTIN_TRAP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue