[llvm-commits] [llvm] r79313 - /llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Chris Lattner
sabre at nondot.org
Mon Aug 17 21:34:36 PDT 2009
Author: lattner
Date: Mon Aug 17 23:34:36 2009
New Revision: 79313
URL: http://llvm.org/viewvc/llvm-project?rev=79313&view=rev
Log:
fix another bozo bug
Modified:
llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=79313&r1=79312&r2=79313&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Mon Aug 17 23:34:36 2009
@@ -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.
More information about the llvm-commits
mailing list