From b9b8ea40183cdbfff954f5aa514810d2534232da Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 14 Mar 2011 20:10:50 +0000 Subject: [PATCH] Fix the exception-specification of abort() when declaring it in C++. llvm-svn: 127610 --- llvm/include/llvm/Support/Compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 2d2a0b124abe..c9cc3da8c3f5 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -134,7 +134,7 @@ # define LLVM_BUILTIN_UNREACHABLE __builtin_unreachable() #else #ifdef __cplusplus -extern "C" LLVM_ATTRIBUTE_NORETURN void abort(); +extern "C" LLVM_ATTRIBUTE_NORETURN void abort() throw(); #else extern LLVM_ATTRIBUTE_NORETURN void abort(); #endif