File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ const uint8_t *GOFFObjectFile::getSymbolEsdRecord(DataRefImpl Symb) const {
190
190
}
191
191
192
192
Expected<StringRef> GOFFObjectFile::getSymbolName (DataRefImpl Symb) const {
193
- if (EsdNamesCache.count (Symb.d .a )) {
194
- auto &StrPtr = EsdNamesCache[Symb. d . a ] ;
193
+ if (auto It = EsdNamesCache.find (Symb.d .a ); It != EsdNamesCache. end ( )) {
194
+ auto &StrPtr = It-> second ;
195
195
return StringRef (StrPtr.second .get (), StrPtr.first );
196
196
}
197
197
@@ -459,8 +459,8 @@ uint64_t GOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
459
459
// a contiguous sequence of bytes.
460
460
Expected<ArrayRef<uint8_t >>
461
461
GOFFObjectFile::getSectionContents (DataRefImpl Sec) const {
462
- if (SectionDataCache.count (Sec.d .a )) {
463
- auto &Buf = SectionDataCache[Sec. d . a ] ;
462
+ if (auto It = SectionDataCache.find (Sec.d .a ); It != SectionDataCache. end ( )) {
463
+ auto &Buf = It-> second ;
464
464
return ArrayRef<uint8_t >(Buf);
465
465
}
466
466
uint64_t SectionSize = getSectionSize (Sec);
You can’t perform that action at this time.
0 commit comments