From: Chandler Carruth Date: Sat, 17 Jan 2015 14:49:23 +0000 (+0000) Subject: [PM] Cleanup more warnings my refactoring exposed where now we have X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc045a5a3332f7e50237e1c01e3b110e026aee4c;p=platform%2Fupstream%2Fllvm.git [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 --- 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 {