[C++11] Replacing CompoundStmt iterators body_begin() and body_end() with iterator_range body(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 204040
This commit is contained in:
@@ -1351,11 +1351,8 @@ void CodeGenFunction::emitImplicitAssignmentOperatorBody(FunctionArgList &Args)
|
||||
LexicalScope Scope(*this, RootCS->getSourceRange());
|
||||
|
||||
AssignmentMemcpyizer AM(*this, AssignOp, Args);
|
||||
for (CompoundStmt::const_body_iterator I = RootCS->body_begin(),
|
||||
E = RootCS->body_end();
|
||||
I != E; ++I) {
|
||||
AM.emitAssignment(*I);
|
||||
}
|
||||
for (auto *I : RootCS->body())
|
||||
AM.emitAssignment(I);
|
||||
AM.finish();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user