summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-03-21 08:57:13 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-03-21 08:57:13 +0000
commitf56cadd3b39ad03e08a3056ac3ac9ff62c9f058d (patch)
treec3efa953625ba25dcabefbce99fb2c1539086e76
parent3f7c3df6a4c54174f23722cca0ed68d1a2428b64 (diff)
downloadbcm5719-llvm-f56cadd3b39ad03e08a3056ac3ac9ff62c9f058d.tar.gz
bcm5719-llvm-f56cadd3b39ad03e08a3056ac3ac9ff62c9f058d.zip
[ELF] - Fix one more access to Sections member.
That finally should linux BB after r298345. llvm-svn: 298349
-rw-r--r--lld/ELF/InputFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 4d97d45f927..f3c9873c422 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -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(
OpenPOWER on IntegriCloud