Skip to content

Commit 45e6951

Browse files
authored
Use uint32_t rather than unsigned in downscaleWeights (#153750)
1 parent 8da1ce5 commit 45e6951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/ProfDataUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ SmallVector<uint32_t> downscaleWeights(ArrayRef<uint64_t> Weights,
276276
: *llvm::max_element(Weights);
277277
assert(MaxCount > 0 && "Bad max count");
278278
uint64_t Scale = calculateCountScale(MaxCount);
279-
SmallVector<unsigned> DownscaledWeights;
279+
SmallVector<uint32_t> DownscaledWeights;
280280
for (const auto &ECI : Weights)
281281
DownscaledWeights.push_back(scaleBranchCount(ECI, Scale));
282282
return DownscaledWeights;

0 commit comments

Comments
 (0)