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 | 666571afadd9dc472da9696377a05b50c9b3f2ab (patch) | |
tree | 22a6180a37ede56abf6237a8da126d79dfb096ec /lib/CodeGen/CGException.cpp | |
parent | 716f0b3e2e36f362b64a2ce0a40a9ad915103255 (diff) |
terminate doesn't throw.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGException.cpp')
-rw-r--r-- | lib/CodeGen/CGException.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp index 85d02bb2ca..c93f2b7b12 100644 --- a/lib/CodeGen/CGException.cpp +++ b/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. |