From 3e84fac4e6d6f1acba61b48a02197edccd20a1bd Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Thu, 14 Aug 2025 23:20:45 -0700 Subject: [PATCH] Use `uint32_t` rather than `unsigned` in `downscaleWeights` --- llvm/lib/IR/ProfDataUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/ProfDataUtils.cpp b/llvm/lib/IR/ProfDataUtils.cpp index c90a1efb9a54a..d24263f8b3bda 100644 --- a/llvm/lib/IR/ProfDataUtils.cpp +++ b/llvm/lib/IR/ProfDataUtils.cpp @@ -276,7 +276,7 @@ SmallVector downscaleWeights(ArrayRef Weights, : *llvm::max_element(Weights); assert(MaxCount > 0 && "Bad max count"); uint64_t Scale = calculateCountScale(MaxCount); - SmallVector DownscaledWeights; + SmallVector DownscaledWeights; for (const auto &ECI : Weights) DownscaledWeights.push_back(scaleBranchCount(ECI, Scale)); return DownscaledWeights;