Do not copy Sections vector.

llvm-svn: 315436
This commit is contained in:
Rui Ueyama 2017-10-11 05:13:16 +00:00
parent 6d4fa5046a
commit a2212f846b

View File

@ -393,7 +393,7 @@ template <class ELFT> void OutputSection::writeTo(uint8_t *Buf) {
if (Filler)
fill(Buf, Sections.empty() ? Size : Sections[0]->OutSecOff, Filler);
parallelForEachN(0, Sections.size(), [=](size_t I) {
parallelForEachN(0, Sections.size(), [&](size_t I) {
InputSection *IS = Sections[I];
IS->writeTo<ELFT>(Buf);