Replace a loop with a for-each loop. No behavior change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nico Weber 2016-04-20 19:09:26 +00:00
parent 1487a2ee93
commit d5de81e06c

View File

@ -327,8 +327,7 @@ llvm::writeArchive(StringRef ArcName,
std::vector<MemoryBufferRef> Members;
std::vector<sys::fs::file_status> NewMemberStatus;
for (unsigned I = 0, N = NewMembers.size(); I < N; ++I) {
NewArchiveIterator &Member = NewMembers[I];
for (NewArchiveIterator &Member : NewMembers) {
MemoryBufferRef MemberRef;
if (Member.isNewMember()) {