Skip to content

Commit

Permalink
fix another bozo bug
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79313 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Aug 18, 2009
1 parent b49a30c commit 1f50fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/MachineBasicBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ bool MachineBasicBlock::isOnlyReachableByFallthrough() const {

// If there isn't exactly one predecessor, it can't be a fall through.
const_pred_iterator PI = pred_begin(), PI2 = PI;
++PI;
if (PI != pred_end())
++PI2;
if (PI2 != pred_end())
return false;

// The predecessor has to be immediately before this block.
Expand Down

0 comments on commit 1f50fc7

Please sign in to comment.