diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index bce506eb8efb..4d2618666ee5 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -208,7 +208,7 @@ elf::ObjectFile::getShtGroupSignature(ArrayRef Sections, const ELFFile &Obj = this->ELFObj; const Elf_Shdr *Symtab = check(object::getSection(Sections, Sec.sh_link)); - const Elf_Sym *Sym = Obj.getSymbol(Symtab, Sec.sh_info); + const Elf_Sym *Sym = check(Obj.getSymbol(Symtab, Sec.sh_info)); StringRef Strtab = check(Obj.getStringTableForSymtab(*Symtab)); return check(Sym->getName(Strtab)); }