projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf3609
)
Use a range loop. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Mon, 1 Dec 2014 19:08:07 +0000
(19:08 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Mon, 1 Dec 2014 19:08:07 +0000
(19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223066
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index 78826c28c03900379d8be8a33ed0f84ed5c71de2..412ccd88b2a2866f85fc87561e22b89410049794 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-794,9
+794,9
@@
void ModuleLinker::computeTypeMapping() {
TypeFinder SrcStructTypes;
SrcStructTypes.run(*SrcM, true);
- for (
unsigned i = 0, e = SrcStructTypes.size(); i != e; ++i
) {
- StructType *ST = SrcStructTypes[i];
-
if (!ST->hasName())
continue;
+ for (
StructType *ST : SrcStructTypes
) {
+ if (!ST->hasName())
+
continue;
// Check to see if there is a dot in the name followed by a digit.
size_t DotPos = ST->getName().rfind('.');