diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-05-08 06:57:41 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-05-08 06:57:41 +0000 |
commit | 0ab2dcee5bf751211ca1fc49decb1540b4cb427c (patch) | |
tree | 3120e678ac7f27ac958fd97048dae9fc60d0edc4 /lib/CodeGen/CodePlacementOpt.cpp | |
parent | 48f95ad971c01878b33b04e497aa45a8b3c8d4d8 (diff) |
Add explicit braces to disambiguate nested if/else. Removes a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodePlacementOpt.cpp')
-rw-r--r-- | lib/CodeGen/CodePlacementOpt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodePlacementOpt.cpp b/lib/CodeGen/CodePlacementOpt.cpp index d297d5aceb..f6a8421c43 100644 --- a/lib/CodeGen/CodePlacementOpt.cpp +++ b/lib/CodeGen/CodePlacementOpt.cpp @@ -203,7 +203,7 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() { 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 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() { FBB = 0; --Cost; } + } } if (Cost) continue; |