From: John McCall Date: Mon, 14 Mar 2011 20:10:50 +0000 (+0000) Subject: Fix the exception-specification of abort() when declaring it in C++. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f32b3c54f020e9416aa74410d43c2452e57d3ae0;p=oota-llvm.git Fix the exception-specification of abort() when declaring it in C++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127610 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 2d2a0b124ab..c9cc3da8c3f 100644 --- a/include/llvm/Support/Compiler.h +++ b/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