summaryrefslogtreecommitdiffstats
path: root/clang/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
commit62afe99814bae01036e792e85ca24243818b2ca7 (patch)
tree3351ddbafdfca68fdabffc813f77094ab961960a /clang/lib/CodeGen/CGException.cpp
parentc2949f9f26f968c5e6e123f2b9587f77b89d5e3b (diff)
downloadbcm5719-llvm-62afe99814bae01036e792e85ca24243818b2ca7.tar.gz
bcm5719-llvm-62afe99814bae01036e792e85ca24243818b2ca7.zip
Work around emitters that can't deal with dead code contexts yet.
llvm-svn: 90796
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 73f66ccd3f5..1c3f06e358e 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud