mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
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:
parent
fcf3609fd7
commit
6eee2bbbbb
@ -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('.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user