[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
Reid Spencer
reid at x10sys.com
Sat May 13 11:11:46 PDT 2006
Changes in directory llvm/include/llvm/Transforms/Utils:
BasicBlockUtils.h updated: 1.11 -> 1.12
---
Log message:
Fix an infinite loop bug that Vladimir Prus identified.
---
Diffs of the changes: (+2 -1)
BasicBlockUtils.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
diff -u llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:1.11 llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:1.12
--- llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:1.11 Fri Feb 10 15:32:11 2006
+++ llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h Sat May 13 13:11:32 2006
@@ -86,9 +86,10 @@
inline bool SplitCriticalEdge(BasicBlock *Src, BasicBlock *Dst, Pass *P = 0) {
TerminatorInst *TI = Src->getTerminator();
- for (unsigned i = 0, e = TI->getNumSuccessors(); ; ++i)
+ for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i)
if (TI->getSuccessor(i) == Dst)
return SplitCriticalEdge(TI, i, P);
+ return false;
}
} // End llvm namespace
More information about the llvm-commits
mailing list