File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -929,15 +929,17 @@ static int linkAndVerify() {
929
929
StringRef SymbolName,
930
930
StringRef KindNameFilter)
931
931
-> Expected<RuntimeDyldChecker::MemoryRegionInfo> {
932
- if (!StubMap.count (StubContainer))
932
+ auto SMIt = StubMap.find (StubContainer);
933
+ if (SMIt == StubMap.end ())
933
934
return make_error<StringError>(" Stub container not found: " +
934
935
StubContainer,
935
936
inconvertibleErrorCode ());
936
- if (!StubMap[StubContainer].count (SymbolName))
937
+ auto It = SMIt->second .find (SymbolName);
938
+ if (It == SMIt->second .end ())
937
939
return make_error<StringError>(" Symbol name " + SymbolName +
938
940
" in stub container " + StubContainer,
939
941
inconvertibleErrorCode ());
940
- auto &SI = StubMap[StubContainer][SymbolName] ;
942
+ auto &SI = It-> second ;
941
943
RuntimeDyldChecker::MemoryRegionInfo StubMemInfo;
942
944
StubMemInfo.setTargetAddress (Dyld.getSectionLoadAddress (SI.SectionID ) +
943
945
SI.Offset );
You can’t perform that action at this time.
0 commit comments