aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-07 20:12:14 +0000
committerMike Stump <mrs@apple.com>2009-12-07 20:12:14 +0000
commitc2ab48698094f3e6f3acebc38a19b8cb04069b41 (patch)
tree17746e076b8e72bc669b5f432854b3aa019bb2e1 /lib/CodeGen/CGException.cpp
parent6d910f07d8727c22e06cff2357bbc1bba25d0910 (diff)
Work around emitters that can't deal with dead code contexts yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGException.cpp')
-rw-r--r--lib/CodeGen/CGException.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp
index 73f66ccd3f..1c3f06e358 100644
--- a/lib/CodeGen/CGException.cpp
+++ b/lib/CodeGen/CGException.cpp
@@ -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) {