[llvm] [BOLT] Fix counts aggregation in merge-fdata (PR #119652)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 15:45:47 PST 2024
================
@@ -330,14 +347,14 @@ void mergeLegacyProfiles(const SmallVectorImpl<std::string> &Filenames) {
ProfileTy MergedProfile;
for (const auto &[Thread, Profile] : ParsedProfiles)
for (const auto &[Key, Value] : Profile) {
- uint64_t Count = MergedProfile.lookup(Key) + Value;
+ auto Count = MergedProfile.lookup(Key) + Value;
----------------
ayermolo wrote:
Why change to auto?
https://github.com/llvm/llvm-project/pull/119652
More information about the llvm-commits
mailing list