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 {
190190}
191191
192192Expected<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 ;
195195 return StringRef (StrPtr.second .get (), StrPtr.first );
196196 }
197197
@@ -459,8 +459,8 @@ uint64_t GOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
459459// a contiguous sequence of bytes.
460460Expected<ArrayRef<uint8_t >>
461461GOFFObjectFile::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 ;
464464 return ArrayRef<uint8_t >(Buf);
465465 }
466466 uint64_t SectionSize = getSectionSize (Sec);
You can’t perform that action at this time.
0 commit comments