diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-02-21 14:21:23 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-02-21 14:21:23 +0000 |
commit | 5bd90e2db1906df9d47a36ac4dd8cc5b4328ee5e (patch) | |
tree | 0241a8b40979c1fc25d1740b67c4843586b1fdb4 /lld | |
parent | 82fca768682a68a7b3096f8a93e8f7480ab124d8 (diff) | |
download | bcm5719-llvm-5bd90e2db1906df9d47a36ac4dd8cc5b4328ee5e.tar.gz bcm5719-llvm-5bd90e2db1906df9d47a36ac4dd8cc5b4328ee5e.zip |
[ELF] - Simplify. NFC.
llvm-svn: 325681
Diffstat (limited to 'lld')
-rw-r--r-- | lld/ELF/Writer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 4b980b37dcd..b58e1bf1ab7 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1348,9 +1348,7 @@ template <class ELFT> void Writer<ELFT>::resolveShfLinkOrder() { // Remove the Sections we marked as duplicate earlier. for (BaseCommand *Base : Sec->SectionCommands) if (auto *ISD = dyn_cast<InputSectionDescription>(Base)) - ISD->Sections.erase( - std::remove(ISD->Sections.begin(), ISD->Sections.end(), nullptr), - ISD->Sections.end()); + llvm::erase_if(ISD->Sections, [](InputSection *IS) { return !IS; }); } } |