Fix the exception-specification of abort() when declaring it in C++.
authorJohn McCall <rjmccall@apple.com>
Mon, 14 Mar 2011 20:10:50 +0000 (20:10 +0000)
committerJohn McCall <rjmccall@apple.com>
Mon, 14 Mar 2011 20:10:50 +0000 (20:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127610 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index 2d2a0b124abe4015bb0e19232639beb931967610..c9cc3da8c3f5429bd20d97eaf7c09bed29293a4d 100644 (file)
 # 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