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:
Aaron Ballman 2015-01-29 20:48:34 +00:00
parent 0652066c8d
commit 03b968e898
1 changed files with 1 additions and 1 deletions

View File

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