[llvm-commits] CVS: llvm/lib/Analysis/LoopInfo.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 14 12:14:28 PST 2006



Changes in directory llvm/lib/Analysis:

LoopInfo.cpp updated: 1.67 -> 1.68
---
Log message:

add an assert


---
Diffs of the changes:  (+2 -1)

 LoopInfo.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.67 llvm/lib/Analysis/LoopInfo.cpp:1.68
--- llvm/lib/Analysis/LoopInfo.cpp:1.67	Sat Jan 14 14:55:08 2006
+++ llvm/lib/Analysis/LoopInfo.cpp	Tue Feb 14 14:14:17 2006
@@ -367,7 +367,8 @@
       Out = *PI;
     }
 
-  // Make sure there is only one exit out of the preheader...
+  // Make sure there is only one exit out of the preheader.
+  assert(Out && "Header of loop has no predecessors from outside loop?");
   succ_iterator SI = succ_begin(Out);
   ++SI;
   if (SI != succ_end(Out))






More information about the llvm-commits mailing list