[cfe-commits] r90308 - /cfe/trunk/lib/CodeGen/CGException.cpp

Mike Stump mrs at apple.com
Wed Dec 2 00:18:09 PST 2009


Author: mrs
Date: Wed Dec  2 02:18:09 2009
New Revision: 90308

URL: http://llvm.org/viewvc/llvm-project?rev=90308&view=rev
Log:
terminate doesn't throw.

Modified:
    cfe/trunk/lib/CodeGen/CGException.cpp

Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=90308&r1=90307&r2=90308&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Wed Dec  2 02:18:09 2009
@@ -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.





More information about the cfe-commits mailing list