[lld] r298349 - [ELF] - Fix one more access to Sections member.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 01:57:14 PDT 2017
Author: grimar
Date: Tue Mar 21 03:57:13 2017
New Revision: 298349
URL: http://llvm.org/viewvc/llvm-project?rev=298349&view=rev
Log:
[ELF] - Fix one more access to Sections member.
That finally should linux BB after r298345.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=298349&r1=298348&r2=298349&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Tue Mar 21 03:57:13 2017
@@ -318,7 +318,7 @@ void elf::ObjectFile<ELFT>::initializeSe
// .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(
More information about the llvm-commits
mailing list