diff options
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index d69c5cdf9e4..4e95c8ad1ce 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -891,9 +891,8 @@ void CodeGenFunction::EmitDeclStmt(const DeclStmt &S) { if (HaveInsertPoint()) EmitStopPoint(&S); - for (DeclStmt::const_decl_iterator I = S.decl_begin(), E = S.decl_end(); - I != E; ++I) - EmitDecl(**I); + for (const auto *I : S.decls()) + EmitDecl(*I); } void CodeGenFunction::EmitBreakStmt(const BreakStmt &S) { |