diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-12-19 22:13:01 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-12-19 22:13:01 +0000 |
commit | 349d1a35ffc10f7041999bbf01cf28cf3a09b792 (patch) | |
tree | e74f468c5a6d5b1dc8f6709bd3fcb5d0628b54d5 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | abdff2ba2dd5725a04316994bd152c2de4c24773 (diff) | |
download | bcm5719-llvm-349d1a35ffc10f7041999bbf01cf28cf3a09b792.tar.gz bcm5719-llvm-349d1a35ffc10f7041999bbf01cf28cf3a09b792.zip |
Add a missing 'else'. Found by grep '} if'
No testcase because it is apparently not so trivial to construct.
llvm-svn: 170595
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 590c20aa05f..7241bb9c205 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -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 " |