summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-02-04 19:19:07 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-02-04 19:19:07 +0000
commit8e661efc00f2138412286bdb4662e9e7995ee23f (patch)
treebf2d93b5d60ae34ab44c1448af7021cc466a7dd2 /llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
parentd554a8eb91116cf055f36e3ffe34cb262a110fd5 (diff)
downloadbcm5719-llvm-8e661efc00f2138412286bdb4662e9e7995ee23f.tar.gz
bcm5719-llvm-8e661efc00f2138412286bdb4662e9e7995ee23f.zip
cleanup: scc_iterator consumers should use isAtEnd
No functional change. Updated loops from: for (I = scc_begin(), E = scc_end(); I != E; ++I) to: for (I = scc_begin(); !I.isAtEnd(); ++I) for teh win. llvm-svn: 200789
Diffstat (limited to 'llvm/lib/Transforms/Scalar/StructurizeCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/StructurizeCFG.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
index 707da30192c..60382889ef0 100644
--- a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -277,9 +277,8 @@ bool StructurizeCFG::doInitialization(Region *R, RGPassManager &RGM) {
/// \brief Build up the general order of nodes
void StructurizeCFG::orderNodes() {
- scc_iterator<Region *> I = scc_begin(ParentRegion),
- E = scc_end(ParentRegion);
- for (Order.clear(); I != E; ++I) {
+ scc_iterator<Region *> I = scc_begin(ParentRegion);
+ for (Order.clear(); !I.isAtEnd(); ++I) {
std::vector<RegionNode *> &Nodes = *I;
Order.append(Nodes.begin(), Nodes.end());
}
OpenPOWER on IntegriCloud