We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af922cf commit 1bb72f0Copy full SHA for 1bb72f0
llvm/lib/Object/GOFFObjectFile.cpp
@@ -503,8 +503,9 @@ GOFFObjectFile::getSectionContents(DataRefImpl Sec) const {
503
std::copy(CompleteData.data(), CompleteData.data() + TxtDataSize,
504
Data.begin() + TxtDataOffset);
505
}
506
- SectionDataCache[Sec.d.a] = Data;
507
- return ArrayRef<uint8_t>(SectionDataCache[Sec.d.a]);
+ auto &Cache = SectionDataCache[Sec.d.a];
+ Cache = Data;
508
+ return ArrayRef<uint8_t>(Cache);
509
510
511
uint64_t GOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const {
0 commit comments