From 51ead00bf81cd92a868bdd1551a06ec5efdb563b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 13 Sep 2019 02:18:04 +0000 Subject: [PATCH] [ELF] Delete a redundant assignment to SectionBase::assigned. NFC LinkerScript::discard marks a section dead. It is unnecessary to set the `assigned` bit. llvm-svn: 371804 --- lld/ELF/LinkerScript.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index dbf705dc7f06..8d8f3b596fa9 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -457,7 +457,6 @@ void LinkerScript::discard(ArrayRef v) { if (s == mainPart->hashTab) mainPart->hashTab = nullptr; - s->assigned = false; s->markDead(); discard(s->dependentSections); }