[llvm] [ADT] Fix the initial size calculation of SmallDenseMap (PR #158458)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 14 09:29:17 PDT 2025
================
@@ -905,7 +901,7 @@ class SmallDenseMap
template <typename InputIt>
SmallDenseMap(const InputIt &I, const InputIt &E) {
- init(NextPowerOf2(std::distance(I, E)));
+ init(std::distance(I, E));
----------------
kazutakahirata wrote:
Ack.
https://github.com/llvm/llvm-project/pull/158458
More information about the llvm-commits
mailing list