aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/CallGraph.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-13 04:07:26 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-13 04:07:26 +0000
commit7502c1d3ce8bb97bcc4f7bebef507040bd93b26f (patch)
treea8483d8d96d4c459027291b90fad493b985313cb /lib/Index/CallGraph.cpp
parent0d70d71ccbc4f7f59cadb759f61b7172a149676c (diff)
Give some convenient idiomatic accessors to Stmt::child_range and
Stmt::const_child_range, then make a bunch of places use them instead of the individual iterator accessors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/CallGraph.cpp')
-rw-r--r--lib/Index/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Index/CallGraph.cpp b/lib/Index/CallGraph.cpp
index dedcc0e808..bf3f5a8a8d 100644
--- a/lib/Index/CallGraph.cpp
+++ b/lib/Index/CallGraph.cpp
@@ -40,7 +40,7 @@ public:
void VisitCallExpr(CallExpr *CE);
void VisitChildren(Stmt *S) {
- for (Stmt::child_iterator I=S->child_begin(), E=S->child_end(); I != E;++I)
+ for (Stmt::child_range I = S->children(); I; ++I)
if (*I)
static_cast<CGBuilder*>(this)->Visit(*I);
}