diff options
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 501131858d7..44ea63ae7bf 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1179,9 +1179,9 @@ void EhOutputSection<ELFT>::addSection(InputSectionBase<ELFT> *C) { if (const Elf_Shdr *RelSec = Sec->RelocSection) { ELFFile<ELFT> &Obj = Sec->getFile()->getObj(); if (RelSec->sh_type == SHT_RELA) - addSectionAux(Sec, Obj.relas(RelSec)); + addSectionAux(Sec, check(Obj.relas(RelSec))); else - addSectionAux(Sec, Obj.rels(RelSec)); + addSectionAux(Sec, check(Obj.rels(RelSec))); return; } addSectionAux(Sec, makeArrayRef<Elf_Rela>(nullptr, nullptr)); |