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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2015-01-29 20:48:34 +00:00
parent 36f0dbbf3e
commit 1b7b2597d5

View File

@ -196,7 +196,7 @@ static int AvoidMessageBoxHook(int ReportType, char *Message, int *Return) {
#endif
static void HandleAbort(int Sig) {
extern "C" void HandleAbort(int Sig) {
if (Sig == SIGABRT) {
LLVM_BUILTIN_TRAP;
}