[ELF] Remove unneeded SectionBase::repl indirection

sec->repl equals sec after rL371216.
This commit is contained in:
Fangrui Song 2021-12-21 00:39:16 -08:00
parent b2cea573c9
commit c2f2bb066b
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ uint64_t Symbol::getSize() const {
OutputSection *Symbol::getOutputSection() const {
if (auto *s = dyn_cast<Defined>(this)) {
if (auto *sec = s->section)
return sec->repl->getOutputSection();
return sec->getOutputSection();
return nullptr;
}
return nullptr;