diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index d3b4116da98b..73a97380b54b 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -521,7 +521,6 @@ static bool shouldKeepInSymtab(SectionBase *Sec, StringRef SymName, if (B.isSection()) return false; - if (Config->Discard == DiscardPolicy::None) return true;