forked from OSchip/llvm-project
Add a missing 'else'. Found by grep '} if'
No testcase because it is apparently not so trivial to construct. llvm-svn: 170595
This commit is contained in:
parent
abdff2ba2d
commit
349d1a35ff
|
@ -597,7 +597,7 @@ MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
|
|||
++MBBI;
|
||||
if (MBBI == MF->end()) {
|
||||
report("MBB conditionally falls through out of function!", MBB);
|
||||
} if (MBB->succ_size() == 1) {
|
||||
} else if (MBB->succ_size() == 1) {
|
||||
// A conditional branch with only one successor is weird, but allowed.
|
||||
if (&*MBBI != TBB)
|
||||
report("MBB exits via conditional branch/fall-through but only has "
|
||||
|
|
Loading…
Reference in New Issue