[ELF] - Fix one more access to Sections member.

That finally should linux BB after r298345.

llvm-svn: 298349
This commit is contained in:
George Rimar 2017-03-21 08:57:13 +00:00
parent 3f7c3df6a4
commit f56cadd3b3
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ void elf::ObjectFile<ELFT>::initializeSections(
// .ARM.exidx sections have a reverse dependency on the InputSection they
// have a SHF_LINK_ORDER dependency, this is identified by the sh_link.
if (Sec.sh_flags & SHF_LINK_ORDER) {
if (Sec.sh_link >= Sections.size())
if (Sec.sh_link >= this->Sections.size())
fatal(toString(this) + ": invalid sh_link index: " +
Twine(Sec.sh_link));
this->Sections[Sec.sh_link]->DependentSections.push_back(