diff options
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 83b5fa9228a..cbdd2fb6f3d 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -637,10 +637,9 @@ void CodeGenFunction::EmitDoStmt(const DoStmt &S) { uint64_t ExitCount = Cnt.getLoopExitCount(); // As long as the condition is true, iterate the loop. - if (EmitBoolCondBranch) { + if (EmitBoolCondBranch) Builder.CreateCondBr(BoolCondVal, LoopBody, LoopExit.getBlock(), PGO.createBranchWeights(LoopCount, ExitCount)); - } // Emit the exit block. EmitBlock(LoopExit.getBlock()); |