From bfcc823a5c53dabab8cfc842bfea70e2b69cdee0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 15 May 2010 17:55:51 +0000 Subject: When initializing thread-safe statics, put the call to __cxa_guard_abort along the exceptional edge into (in effect) a nested "try" that rethrows after aborting. Fixes PR7144 and the remaining Boost.ProgramOptions failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103880 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 151c13c808..9761fa0b50 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1258,7 +1258,8 @@ public: bool IsInitializer = false); void EmitCXXThrowExpr(const CXXThrowExpr *E); - + void EmitRethrow(); + //===--------------------------------------------------------------------===// // Internal Helpers //===--------------------------------------------------------------------===// -- cgit v1.2.3