diff options
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/LayoutPass.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp index 071a0dc3d9a..18d8fd9954c 100644 --- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp +++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp @@ -407,7 +407,7 @@ void LayoutPass::buildOrdinalOverrideMap(SimpleFile::DefinedAtomRange &range) { AtomToAtomT::iterator start = _followOnRoots.find(atom); if (start == _followOnRoots.end()) continue; - for (const DefinedAtom *nextAtom = start->second; nextAtom != NULL; + for (const DefinedAtom *nextAtom = start->second; nextAtom; nextAtom = _followOnNexts[nextAtom]) { AtomToOrdinalT::iterator pos = _ordinalOverrideMap.find(nextAtom); if (pos == _ordinalOverrideMap.end()) |