diff options
author | Rui Ueyama <ruiu@google.com> | 2015-10-02 00:36:00 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-10-02 00:36:00 +0000 |
commit | 43155d0d4806051f5a777fc861bae8b729d4b4c3 (patch) | |
tree | d9968006155251c745381625b9bd2efb74553bbe /lld/lib/ReaderWriter/MachO/LayoutPass.cpp | |
parent | 42562c38f55118cbb95a3dfbe7d19dd9a5b110e7 (diff) | |
download | bcm5719-llvm-43155d0d4806051f5a777fc861bae8b729d4b4c3.tar.gz bcm5719-llvm-43155d0d4806051f5a777fc861bae8b729d4b4c3.zip |
[LLD] Fix Clang-tidy modernize-use-nullptr warnings; other minor cleanups.
Patch from Eugene Zelenko!
llvm-svn: 249111
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()) |