terminate doesn't throw.

llvm-svn: 90308
This commit is contained in:
Mike Stump 2009-12-02 08:18:09 +00:00
parent d062bff7ee
commit a510597ef9
1 changed files with 1 additions and 0 deletions

View File

@ -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.