diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-14 20:14:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-14 20:14:17 +0000 |
commit | 60330ff193a03c02f0b0eabb17fa938c4bef6f59 (patch) | |
tree | d99a42625d8c0fedb7530157d9fa9915f10e1d95 /lib/Analysis/LoopInfo.cpp | |
parent | c4f8eee05447a1d7ead3deabbeb087e3e037f3f8 (diff) | |
download | external_llvm-60330ff193a03c02f0b0eabb17fa938c4bef6f59.zip external_llvm-60330ff193a03c02f0b0eabb17fa938c4bef6f59.tar.gz external_llvm-60330ff193a03c02f0b0eabb17fa938c4bef6f59.tar.bz2 |
add an assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 20b470f..2860aa4 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -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)) |