[llvm-commits] [llvm] r127610 - /llvm/trunk/include/llvm/Support/Compiler.h

John McCall rjmccall at apple.com
Mon Mar 14 13:10:50 PDT 2011


Author: rjmccall
Date: Mon Mar 14 15:10:50 2011
New Revision: 127610

URL: http://llvm.org/viewvc/llvm-project?rev=127610&view=rev
Log:
Fix the exception-specification of abort() when declaring it in C++.


Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=127610&r1=127609&r2=127610&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Mon Mar 14 15:10:50 2011
@@ -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





More information about the llvm-commits mailing list