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

Mike Stump mrs at apple.com
Mon Dec 7 12:12:14 PST 2009


Author: mrs
Date: Mon Dec  7 14:12:14 2009
New Revision: 90796

URL: http://llvm.org/viewvc/llvm-project?rev=90796&view=rev
Log:
Work around emitters that can't deal with dead code contexts yet.

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=90796&r1=90795&r2=90796&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Mon Dec  7 14:12:14 2009
@@ -263,6 +263,10 @@
   
   // Clear the insertion point to indicate we are in unreachable code.
   Builder.ClearInsertionPoint();
+
+  // FIXME: For now, emit a dummy basic block because expr emitters in generally
+  // are not ready to handle emitting expressions at unreachable points.
+  EnsureInsertPoint();
 }
 
 void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {





More information about the cfe-commits mailing list