We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 890bc46 commit a01933dCopy full SHA for a01933d
llvm/include/llvm/ADT/DenseMapInfo.h
@@ -124,7 +124,8 @@ struct DenseMapInfo<
124
if constexpr (std::is_unsigned_v<T> && sizeof(T) > sizeof(unsigned))
125
return densemap::detail::mix(Val);
126
else
127
- return static_cast<unsigned>(Val * 37U);
+ return static_cast<unsigned>(Val *
128
+ static_cast<std::make_unsigned_t<T>>(37U));
129
}
130
131
static bool isEqual(const T &LHS, const T &RHS) { return LHS == RHS; }
0 commit comments