diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-08 00:22:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-08 00:22:41 +0000 |
commit | 04364fb01e554b23f21e7f207ed947a3b9c94d86 (patch) | |
tree | b9c91935fe35378b37799d1cdaec37f0b4d49779 /include/llvm/Analysis/DataStructure/DSGraph.h | |
parent | f2592ce201b7857d88f9e2ac31a2329a10f85562 (diff) |
Change to use iterators instead of direct access
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSGraph.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index 7e19212abe..2cfcfb9505 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -268,8 +268,8 @@ public: /// is useful for clearing out markers like Incomplete. /// void maskNodeTypes(unsigned Mask) { - for (unsigned i = 0, e = Nodes.size(); i != e; ++i) - Nodes[i]->maskNodeTypes(Mask); + for (node_iterator I = node_begin(), E = node_end(); I != E; ++I) + (*I)->maskNodeTypes(Mask); } void maskIncompleteMarkers() { maskNodeTypes(~DSNode::Incomplete); } |