From 666571afadd9dc472da9696377a05b50c9b3f2ab Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 2 Dec 2009 08:18:09 +0000 Subject: [PATCH] terminate doesn't throw. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90308 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGException.cpp | 1 + 1 file changed, 1 insertion(+) 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.