diff --git a/llvm/include/llvm/ProfileData/PGOCtxProfReader.h b/llvm/include/llvm/ProfileData/PGOCtxProfReader.h index beda07d7b8286..a00c21ddc7d7a 100644 --- a/llvm/include/llvm/ProfileData/PGOCtxProfReader.h +++ b/llvm/include/llvm/ProfileData/PGOCtxProfReader.h @@ -68,8 +68,7 @@ class PGOCtxProfContext final { CallsiteMapTy &callsites() { return Callsites; } void ingestContext(uint32_t CSId, PGOCtxProfContext &&Other) { - auto [Iter, _] = callsites().try_emplace(CSId, CallTargetMapTy()); - Iter->second.emplace(Other.guid(), std::move(Other)); + callsites()[CSId].emplace(Other.guid(), std::move(Other)); } void ingestAllContexts(uint32_t CSId, CallTargetMapTy &&Other) {