diff options
author | John McCall <rjmccall@apple.com> | 2011-03-14 20:10:50 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-03-14 20:10:50 +0000 |
commit | f32b3c54f020e9416aa74410d43c2452e57d3ae0 (patch) | |
tree | 56972388b688288e2107af170692dbb95537f68f /include | |
parent | 2f9a9ed785416a7350f30141fcc405b69a1b9d5d (diff) | |
download | llvm-f32b3c54f020e9416aa74410d43c2452e57d3ae0.tar.gz llvm-f32b3c54f020e9416aa74410d43c2452e57d3ae0.tar.bz2 llvm-f32b3c54f020e9416aa74410d43c2452e57d3ae0.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 2d2a0b124a..c9cc3da8c3 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 |