summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/LinkerScript.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 3f68e6eff87..71c8ff2497c 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -481,7 +481,6 @@ void LinkerScript::processSectionCommands() {
if (Sec->Name == "/DISCARD/") {
discard(V);
Sec->SectionCommands.clear();
- Sec->SectionIndex = 0; // Not an orphan.
continue;
}
OpenPOWER on IntegriCloud