commit | a510597ef93c8e75ca68d339d75dbae8a96d0e37 | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Wed Dec 02 08:18:09 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Wed Dec 02 08:18:09 2009 +0000 |
tree | e7b2a670349d78653df4e1200342b22b18b961fd | |
parent | d062bff7ee5bec21b16338ecb44152901110a094 [diff] |
terminate doesn't throw. llvm-svn: 90308
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 85d02bb..c93f2b7 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp
@@ -440,6 +440,7 @@ llvm::CallInst *TerminateCall = Builder.CreateCall(getTerminateFn(*this)); TerminateCall->setDoesNotReturn(); + TerminateCall->setDoesNotThrow(); Builder.CreateUnreachable(); // Clear the insertion point to indicate we are in unreachable code.