diff options
-rw-r--r-- | lld/lib/Core/SymbolTable.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index 325c5ffd166..49331345209 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -338,9 +338,8 @@ unsigned int SymbolTable::size() { } void SymbolTable::undefines(std::vector<const UndefinedAtom *> &undefs) { - for (NameToAtom::iterator it = _nameTable.begin(), - end = _nameTable.end(); it != end; ++it) { - const Atom *atom = it->second; + for (auto it : _nameTable) { + const Atom *atom = it.second; assert(atom != nullptr); if (const auto undef = dyn_cast<const UndefinedAtom>(atom)) { AtomToAtom::iterator pos = _replacedAtoms.find(undef); |