mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-25 18:55:48 +00:00
Do not copy Sections vector.
llvm-svn: 315436
This commit is contained in:
parent
6d4fa5046a
commit
a2212f846b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user