Work around emitters that can't deal with dead code contexts yet.

llvm-svn: 90796
This commit is contained in:
Mike Stump
2009-12-07 20:12:14 +00:00
parent c2949f9f26
commit 62afe99814

View File

@@ -263,6 +263,10 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) {
// 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) {