summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-02 08:18:09 +0000
committerMike Stump <mrs@apple.com>2009-12-02 08:18:09 +0000
commita510597ef93c8e75ca68d339d75dbae8a96d0e37 (patch)
treee7b2a670349d78653df4e1200342b22b18b961fd
parentd062bff7ee5bec21b16338ecb44152901110a094 (diff)
downloadbcm5719-llvm-a510597ef93c8e75ca68d339d75dbae8a96d0e37.tar.gz
bcm5719-llvm-a510597ef93c8e75ca68d339d75dbae8a96d0e37.zip
terminate doesn't throw.
llvm-svn: 90308
-rw-r--r--clang/lib/CodeGen/CGException.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 85d02bb2ca5..c93f2b7b120 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -440,6 +440,7 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
llvm::CallInst *TerminateCall =
Builder.CreateCall(getTerminateFn(*this));
TerminateCall->setDoesNotReturn();
+ TerminateCall->setDoesNotThrow();
Builder.CreateUnreachable();
// Clear the insertion point to indicate we are in unreachable code.
OpenPOWER on IntegriCloud