aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-17 14:49:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-17 14:49:23 +0000
commitbc045a5a3332f7e50237e1c01e3b110e026aee4c (patch)
treeadecc63e36e8bc4ae808402a25d3c6b9e8c27139 /llvm/lib/Analysis/LoopInfo.cpp
parent24fd029a60618b49162a749d2b6767711f89a31b (diff)
downloadllvm-bc045a5a3332f7e50237e1c01e3b110e026aee4c.zip
llvm-bc045a5a3332f7e50237e1c01e3b110e026aee4c.tar.gz
llvm-bc045a5a3332f7e50237e1c01e3b110e026aee4c.tar.bz2
[PM] Cleanup more warnings my refactoring exposed where now we have
unused variables in a no-asserts build. I've fixed this by putting the entire loop behind an #ifndef as it contains nothing other than asserts. llvm-svn: 226377
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index c200f9f..ec3fed5 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/lib/Analysis/LoopInfo.cpp
@@ -699,12 +699,14 @@ void LoopInfoWrapperPass::verifyAnalysis() const {
}
// Verify that blocks are mapped to valid loops.
+#ifndef NDEBUG
for (auto &Entry : LI.LI.BBMap) {
BasicBlock *BB = Entry.first;
Loop *L = Entry.second;
assert(Loops.count(L) && "orphaned loop");
assert(L->contains(BB) && "orphaned block");
}
+#endif
}
void LoopInfoWrapperPass::getAnalysisUsage(AnalysisUsage &AU) const {