From 63d3fa5f3becf37404f1f6da9c7da5579ba9bca9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Aug 2009 04:34:36 +0000 Subject: fix another bozo bug llvm-svn: 79313 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index f261674ca19..854f266b4ef 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/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. -- cgit v1.2.3