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:
parent
5a2a9d3896
commit
f5f9a68dec
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user