1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

add an assert

llvm-svn: 26178
This commit is contained in:
Chris Lattner 2006-02-14 20:14:17 +00:00
parent 5a2a9d3896
commit f5f9a68dec

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))