Update for llvm change.

llvm-svn: 285911
This commit is contained in:
Rafael Espindola 2016-11-03 13:58:26 +00:00
parent 7b2750afa5
commit 382200abb7

View File

@ -144,7 +144,7 @@ template <class ELFT>
uint32_t ELFFileBase<ELFT>::getSectionIndex(const Elf_Sym &Sym) const {
uint32_t I = Sym.st_shndx;
if (I == ELF::SHN_XINDEX)
return ELFObj.getExtendedSymbolTableIndex(&Sym, Symtab, SymtabSHNDX);
return check(ELFObj.getExtendedSymbolTableIndex(&Sym, Symtab, SymtabSHNDX));
if (I >= ELF::SHN_LORESERVE)
return 0;
return I;