mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
Work around emitters that can't deal with dead code contexts yet.
llvm-svn: 90796
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user