diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-18 04:34:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-18 04:34:36 +0000 |
commit | a59f39b8fe424ea505b4c75f476a7ac915e9d606 (patch) | |
tree | 804147fc1fd3f0b0a6f8bb0d1f9ec2abbab964d7 | |
parent | 1378a3a41367b129594b2754dba2ee0ff20cc8be (diff) | |
download | external_llvm-a59f39b8fe424ea505b4c75f476a7ac915e9d606.zip external_llvm-a59f39b8fe424ea505b4c75f476a7ac915e9d606.tar.gz external_llvm-a59f39b8fe424ea505b4c75f476a7ac915e9d606.tar.bz2 |
fix another bozo bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79313 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index f261674..854f266 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -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. |