Use a range loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-07-14 23:51:01 +00:00
parent 8c63486145
commit 45177c59dc

View File

@ -154,10 +154,8 @@ static void writeStringTable(raw_fd_ostream &Out,
ArrayRef<NewArchiveIterator> Members,
std::vector<unsigned> &StringMapIndexes) {
unsigned StartOffset = 0;
for (ArrayRef<NewArchiveIterator>::iterator I = Members.begin(),
E = Members.end();
I != E; ++I) {
StringRef Name = I->getName();
for (const NewArchiveIterator &I : Members) {
StringRef Name = I.getName();
if (Name.size() < 16)
continue;
if (StartOffset == 0) {