diff options
author | John McCall <rjmccall@apple.com> | 2011-02-13 04:07:26 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-13 04:07:26 +0000 |
commit | 8322c3a19768bdc4f48dc7c206ed30035d9fa755 (patch) | |
tree | dd6e5f2da2678340e5dce3d2c765ef349c8f1b7e /clang/lib/Analysis/UninitializedValues.cpp | |
parent | 4f23f2be15d9d1342687dd49190dca0457fc9c9c (diff) | |
download | bcm5719-llvm-8322c3a19768bdc4f48dc7c206ed30035d9fa755.tar.gz bcm5719-llvm-8322c3a19768bdc4f48dc7c206ed30035d9fa755.zip |
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.
llvm-svn: 125450
Diffstat (limited to 'clang/lib/Analysis/UninitializedValues.cpp')
-rw-r--r-- | clang/lib/Analysis/UninitializedValues.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp index 73bce8b3b7b..570743268ed 100644 --- a/clang/lib/Analysis/UninitializedValues.cpp +++ b/clang/lib/Analysis/UninitializedValues.cpp @@ -230,7 +230,7 @@ bool TransferFuncs::VisitStmt(Stmt* S) { // We don't stop at the first subexpression that is Uninitialized because // evaluating some subexpressions may result in propogating "Uninitialized" // or "Initialized" to variables referenced in the other subexpressions. - 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 && Visit(*I) == Uninitialized) x = Uninitialized; return x; |