summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-03-20 20:52:32 +0000
committerAnders Carlsson <andersca@mac.com>2011-03-20 20:52:32 +0000
commit6dc204de40f8c7e1a5992d1e62b34bc27429b484 (patch)
tree4961f9dc5ce7b687e3de8e3cee7a310d553087e1 /clang/lib
parent336fd90f4d11d6e3f79b36be0652308dfba530d2 (diff)
downloadbcm5719-llvm-6dc204de40f8c7e1a5992d1e62b34bc27429b484.tar.gz
bcm5719-llvm-6dc204de40f8c7e1a5992d1e62b34bc27429b484.zip
__cxa_atexit does not throw.
llvm-svn: 127977
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGDeclCXX.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDeclCXX.cpp b/clang/lib/CodeGen/CGDeclCXX.cpp
index ed25b6db38e..cb1c8ed192d 100644
--- a/clang/lib/CodeGen/CGDeclCXX.cpp
+++ b/clang/lib/CodeGen/CGDeclCXX.cpp
@@ -138,6 +138,8 @@ CodeGenFunction::EmitCXXGlobalDtorRegistration(llvm::Constant *DtorFn,
llvm::Constant *AtExitFn = CGM.CreateRuntimeFunction(AtExitFnTy,
"__cxa_atexit");
+ if (llvm::Function *Fn = dyn_cast<llvm::Function>(AtExitFn))
+ Fn->setDoesNotThrow();
llvm::Constant *Handle = CGM.CreateRuntimeVariable(Int8PtrTy,
"__dso_handle");
OpenPOWER on IntegriCloud