Use a range loop. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223066 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-12-01 19:08:07 +00:00
parent fcf3609fd7
commit 6eee2bbbbb

View File

@ -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('.');