Add explicit braces to disambiguate nested if/else. Removes a warning.
llvm-svn: 71211
diff --git a/llvm/lib/CodeGen/CodePlacementOpt.cpp b/llvm/lib/CodeGen/CodePlacementOpt.cpp
index d297d5a..f6a8421 100644
--- a/llvm/lib/CodeGen/CodePlacementOpt.cpp
+++ b/llvm/lib/CodeGen/CodePlacementOpt.cpp
@@ -203,7 +203,7 @@
if (SuccMBB->isLayoutSuccessor(SSMBB))
// This will become a jmp.
++Cost;
- else if (MBB->isLayoutSuccessor(SSMBB))
+ else if (MBB->isLayoutSuccessor(SSMBB)) {
// One of the successor will become the new fallthrough.
if (SSMBB == FBB) {
FBB = 0;
@@ -216,6 +216,7 @@
FBB = 0;
--Cost;
}
+ }
}
if (Cost)
continue;