diff options
author | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
commit | 1f6a329f79b3568d379142f921f59c4143ddaa14 (patch) | |
tree | 48a398f7238e67041a4f73e6f65440be845523cb /lib/Analysis | |
parent | 3c757ef2ef8294ea34378804d7c4d71053588b8c (diff) |
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/IPA/CallGraphSCCPass.cpp | 1 | ||||
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index 659ffab0c6..b6f9f0b32d 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -350,6 +350,7 @@ bool CGPassManager::RefreshCallGraph(CallGraphSCC &CurSCC, dbgs() << "CGSCCPASSMGR: SCC Refresh didn't change call graph.\n"; } ); + (void)MadeChange; return DevirtualizedCall; } diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index af35462544..9a7c50d7fa 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/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; |