diff options
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index f2088f416d5..97a7a057687 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -168,11 +168,12 @@ void CodeGenFunction::EmitBranch(llvm::BasicBlock *Target) {      // If the last block was an empty placeholder, remove it now.      // TODO: cache and reuse these.      CurBB->eraseFromParent(); -    Builder.ClearInsertionPoint();    } else {      // Otherwise, create a fall-through branch.      Builder.CreateBr(Target);    } + +  Builder.ClearInsertionPoint();  }  void CodeGenFunction::EmitDummyBlock() { | 

