mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Add explicit braces to disambiguate nested if/else. Removes a warning.
llvm-svn: 71211
This commit is contained in:
parent
8d9ef77adc
commit
a8f179d44b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user