Skip to content

Commit 2b81e9e

Browse files
[Orc] Use a range-based for loop (NFC) (#169240)
Identified with modernize-loop-convert.
1 parent 67391fc commit 2b81e9e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/ExecutionEngine/Orc/Core.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -713,12 +713,7 @@ JITDylib::defineMaterializing(MaterializationResponsibility &FromMR,
713713
std::vector<NonOwningSymbolStringPtr> AddedSyms;
714714
std::vector<NonOwningSymbolStringPtr> RejectedWeakDefs;
715715

716-
for (auto SFItr = SymbolFlags.begin(), SFEnd = SymbolFlags.end();
717-
SFItr != SFEnd; ++SFItr) {
718-
719-
auto &Name = SFItr->first;
720-
auto &Flags = SFItr->second;
721-
716+
for (auto &[Name, Flags] : SymbolFlags) {
722717
auto EntryItr = Symbols.find(Name);
723718

724719
// If the entry already exists...

0 commit comments

Comments
 (0)