mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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:
parent
c4f8eee054
commit
60330ff193
@ -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…
x
Reference in New Issue
Block a user