File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1108,8 +1108,8 @@ void ValueEnumerator::purgeFunction() {
1108
1108
// / Remove purged values from the ValueMap.
1109
1109
for (unsigned i = NumModuleValues, e = Values.size (); i != e; ++i)
1110
1110
ValueMap.erase (Values[i].first );
1111
- for (unsigned i = NumModuleMDs, e = MDs. size (); i != e; ++i )
1112
- MetadataMap.erase (MDs[i] );
1111
+ for (const Metadata *MD : llvm::drop_begin (MDs, NumModuleMDs) )
1112
+ MetadataMap.erase (MD );
1113
1113
for (const BasicBlock *BB : BasicBlocks)
1114
1114
ValueMap.erase (BB);
1115
1115
Original file line number Diff line number Diff line change @@ -332,9 +332,8 @@ llvm::MachO::convertToInterfaceFile(const Records &Slices) {
332
332
}
333
333
334
334
File = createInterfaceFile (Slices, *InstallNames.begin ());
335
- for (auto it = std::next (InstallNames.begin ()); it != InstallNames.end ();
336
- ++it)
337
- File->addDocument (createInterfaceFile (Slices, *it));
335
+ for (StringRef IN : llvm::drop_begin (InstallNames))
336
+ File->addDocument (createInterfaceFile (Slices, IN));
338
337
339
338
return File;
340
339
}
You can’t perform that action at this time.
0 commit comments