summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:13 +0000
committerJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:13 +0000
commit2f6b404a1489367ce13a20dcdabe41d27d42f1b8 (patch)
tree5dcebbfd1e1e7da263e07897ff824f6f7c67ca22
parent7384405f2331f15e29d5c72122b14261ca6cbe5b (diff)
downloadbcm5719-llvm-2f6b404a1489367ce13a20dcdabe41d27d42f1b8.tar.gz
bcm5719-llvm-2f6b404a1489367ce13a20dcdabe41d27d42f1b8.zip
CodeGen: Remove some unnecessary braces
llvm-svn: 199136
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp3
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());
OpenPOWER on IntegriCloud