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 e1d205a commit 24f798aCopy full SHA for 24f798a
llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
@@ -201,9 +201,7 @@ class SampleProfileMatcher {
201
void UpdateWithSalvagedProfiles();
202
203
LocToLocMap &getIRToProfileLocationMap(const Function &F) {
204
- auto Ret = FuncMappings.try_emplace(
205
- FunctionSamples::getCanonicalFnName(F.getName()), LocToLocMap());
206
- return Ret.first->second;
+ return FuncMappings[FunctionSamples::getCanonicalFnName(F.getName())];
207
}
208
void distributeIRToProfileLocationMap();
209
void distributeIRToProfileLocationMap(FunctionSamples &FS);
0 commit comments