From 03b968e89874e4fe8f76f6b7f2345086d353f962 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 29 Jan 2015 20:48:34 +0000 Subject: [PATCH] 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 --- llvm/lib/Support/Windows/Signals.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index f288db7c8b71..fa16aa58c7f3 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/lib/Support/Windows/Signals.inc @@ -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; }