[llvm] r226377 - [PM] Cleanup more warnings my refactoring exposed where now we have
Chandler Carruth
chandlerc at gmail.com
Sat Jan 17 06:49:23 PST 2015
Author: chandlerc
Date: Sat Jan 17 08:49:23 2015
New Revision: 226377
URL: http://llvm.org/viewvc/llvm-project?rev=226377&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Analysis/LoopInfo.cpp
Modified: llvm/trunk/lib/Analysis/LoopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopInfo.cpp?rev=226377&r1=226376&r2=226377&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopInfo.cpp Sat Jan 17 08:49:23 2015
@@ -699,12 +699,14 @@ void LoopInfoWrapperPass::verifyAnalysis
}
// 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 {
More information about the llvm-commits
mailing list