commit | 1f50fc736ea402b10286523d7d53d2b16bd5ce16 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Aug 18 04:34:36 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Aug 18 04:34:36 2009 +0000 |
tree | 804147fc1fd3f0b0a6f8bb0d1f9ec2abbab964d7 | |
parent | b49a30c109469361881189d65ffeed44177ed98b [diff] [blame] |
fix another bozo bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79313 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ // 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.