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 4c28844 commit 4cff8efCopy full SHA for 4cff8ef
llvm/include/llvm/ProfileData/InstrProf.h
@@ -729,9 +729,7 @@ Function* InstrProfSymtab::getFunction(uint64_t FuncMD5Hash) {
729
}
730
731
GlobalVariable *InstrProfSymtab::getGlobalVariable(uint64_t MD5Hash) {
732
- if (auto Iter = MD5VTableMap.find(MD5Hash); Iter != MD5VTableMap.end())
733
- return Iter->second;
734
- return nullptr;
+ return MD5VTableMap.lookup(MD5Hash);
735
736
737
// To store the sums of profile count values, or the percentage of
0 commit comments