Remove a report_fatal_error that should be unreachable.

If we created a relocation iterator, we have a valid relocation section.

llvm-svn: 241286
This commit is contained in:
Rafael Espindola 2015-07-02 17:16:07 +00:00
parent 7c691fee1c
commit 03e23121f8

View File

@ -241,10 +241,7 @@ protected:
/// \brief Get the relocation section that contains \a Rel.
const Elf_Shdr *getRelSection(DataRefImpl Rel) const {
ErrorOr<const Elf_Shdr *> Sec = EF.getSection(Rel.d.a);
if (std::error_code EC = Sec.getError())
report_fatal_error(EC.message());
return *Sec;
return *EF.getSection(Rel.d.a);
}
const Elf_Sym *toELFSymIter(DataRefImpl Sym) const {