add an assert

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-02-14 20:14:17 +00:00
parent c4f8eee054
commit 60330ff193

View File

@ -367,7 +367,8 @@ BasicBlock *Loop::getLoopPreheader() const {
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))