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
This commit is contained in:
Chris Lattner 2004-02-08 00:22:41 +00:00
parent f2592ce201
commit 04364fb01e
2 changed files with 4 additions and 4 deletions

View File

@ -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); }

View File

@ -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); }