summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
committerDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
commita41634e307caa823b1e050eb8b4f67fdf4b8e415 (patch)
tree0172f17f10f9238b605692f703516f3d271ff563 /llvm/lib/Analysis/LoopInfo.cpp
parent50aa2d480ced9bb792d438f6ff92fe06afa6b84e (diff)
downloadbcm5719-llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.tar.gz
bcm5719-llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.zip
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled. llvm-svn: 137460
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index af35462544e..9a7c50d7fa4 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/lib/Analysis/LoopInfo.cpp
@@ -612,8 +612,8 @@ void LoopInfo::updateUnloop(Loop *Unloop) {
}
// Remove the loop from the top-level LoopInfo object.
- for (LoopInfo::iterator I = LI.begin(), E = LI.end();; ++I) {
- assert(I != E && "Couldn't find loop");
+ for (LoopInfo::iterator I = LI.begin();; ++I) {
+ assert(I != LI.end() && "Couldn't find loop");
if (*I == Unloop) {
LI.removeLoop(I);
break;
@@ -640,8 +640,8 @@ void LoopInfo::updateUnloop(Loop *Unloop) {
// Remove unloop from its parent loop.
Loop *ParentLoop = Unloop->getParentLoop();
- for (Loop::iterator I = ParentLoop->begin(), E = ParentLoop->end();; ++I) {
- assert(I != E && "Couldn't find loop");
+ for (Loop::iterator I = ParentLoop->begin();; ++I) {
+ assert(I != ParentLoop->end() && "Couldn't find loop");
if (*I == Unloop) {
ParentLoop->removeChildLoop(I);
break;
OpenPOWER on IntegriCloud