projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af0fdc2
)
Replace a loop with a for-each loop. No behavior change.
author
Nico Weber
<nicolasweber@gmx.de>
Wed, 20 Apr 2016 19:09:26 +0000
(19:09 +0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Wed, 20 Apr 2016 19:09:26 +0000
(19:09 +0000)
llvm-svn: 266903
llvm/lib/Object/ArchiveWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Object/ArchiveWriter.cpp
b/llvm/lib/Object/ArchiveWriter.cpp
index
a1be2fc
..
011c9d5
100644
(file)
--- a/
llvm/lib/Object/ArchiveWriter.cpp
+++ b/
llvm/lib/Object/ArchiveWriter.cpp
@@
-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()) {