summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-27 21:51:19 +0000
committerChris Lattner <sabre@nondot.org>2004-01-27 21:51:19 +0000
commit0e43b44c314ed82b5b2d22bcfb5714311e8cab02 (patch)
tree6483d1ff9c12c88d723f73ba1f746cfa048d4cd2 /llvm/lib/Analysis/DataStructure/Local.cpp
parentb529730af0d65eab1f0f63c655b56e30534e043f (diff)
downloadbcm5719-llvm-0e43b44c314ed82b5b2d22bcfb5714311e8cab02.tar.gz
bcm5719-llvm-0e43b44c314ed82b5b2d22bcfb5714311e8cab02.zip
minor cleanups
llvm-svn: 10985
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index 5cafefaff44..03ec7410268 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/lib/Analysis/DataStructure/Local.cpp
@@ -172,10 +172,9 @@ DSGraph::DSGraph(const TargetData &td, Function &F, DSGraph *GG)
// Remove all integral constants from the scalarmap!
for (ScalarMapTy::iterator I = ScalarMap.begin(); I != ScalarMap.end();)
- if (isa<ConstantIntegral>(I->first)) {
- ScalarMapTy::iterator J = I++;
- ScalarMap.erase(J);
- } else
+ if (isa<ConstantIntegral>(I->first))
+ ScalarMap.erase(I++);
+ else
++I;
markIncompleteNodes(DSGraph::MarkFormalArgs);
OpenPOWER on IntegriCloud