diff options
author | Mike Stump <mrs@apple.com> | 2009-12-02 08:18:09 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-02 08:18:09 +0000 |
commit | a510597ef93c8e75ca68d339d75dbae8a96d0e37 (patch) | |
tree | e7b2a670349d78653df4e1200342b22b18b961fd /clang/lib/CodeGen | |
parent | d062bff7ee5bec21b16338ecb44152901110a094 (diff) | |
download | bcm5719-llvm-a510597ef93c8e75ca68d339d75dbae8a96d0e37.tar.gz bcm5719-llvm-a510597ef93c8e75ca68d339d75dbae8a96d0e37.zip |
terminate doesn't throw.
llvm-svn: 90308
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 1 |
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. |