summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/InputFiles.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 4f484076561..d6007674be4 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -605,10 +605,7 @@ InputSectionBase *ObjFile<ELFT>::getSection(uint32_t Index) const {
return nullptr;
if (Index >= this->Sections.size())
fatal(toString(this) + ": invalid section index: " + Twine(Index));
-
- if (InputSectionBase *Sec = this->Sections[Index])
- return Sec->Repl;
- return nullptr;
+ return this->Sections[Index];
}
template <class ELFT> Symbol *ObjFile<ELFT>::createSymbol(const Elf_Sym *Sym) {
OpenPOWER on IntegriCloud