diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-03 15:12:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-03 15:12:24 +0000 |
commit | 973431b22f081a53a6e35d9617427319ad5c8e78 (patch) | |
tree | 3610d0a1786c7a6f19f92565e11b30f5c5fe7e4f /clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp | |
parent | e9da9aa4f386da6930dc663aaed727ce61690570 (diff) | |
download | bcm5719-llvm-973431b22f081a53a6e35d9617427319ad5c8e78.tar.gz bcm5719-llvm-973431b22f081a53a6e35d9617427319ad5c8e78.zip |
Rewrite users of Stmt::child_begin/end into for-range loops.
No functionality change intended.
llvm-svn: 241355
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp b/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp index 339af8f0332..12eb0bde28a 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp @@ -69,8 +69,8 @@ static bool scan_ivar_release(Stmt *S, ObjCIvarDecl *ID, } // Recurse to children. - for (Stmt::child_iterator I = S->child_begin(), E= S->child_end(); I!=E; ++I) - if (*I && scan_ivar_release(*I, ID, PD, Release, SelfII, Ctx)) + for (Stmt *SubStmt : S->children()) + if (SubStmt && scan_ivar_release(SubStmt, ID, PD, Release, SelfII, Ctx)) return true; return false; |