From 5ffa13c47395c0e9138526108b12711d27c2dbfe Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 15 Apr 2016 00:15:02 +0000 Subject: [PATCH] Delete a dead repl. It is only ever used on symbols taken from the symbol table. llvm-svn: 266391 --- lld/ELF/OutputSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index d7f5be3bc8b2..c291ff13f36e 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1487,7 +1487,7 @@ SymbolTableSection::getOutputSection(SymbolBody *Sym) { case SymbolBody::DefinedSyntheticKind: return &cast>(Sym)->Section; case SymbolBody::DefinedRegularKind: { - auto &D = cast>(Sym->repl()); + auto &D = cast>(*Sym); if (D.Section) return D.Section->OutSec; break;