[llvm] [ADT] Modernize Bitset (NFC) (PR #162430)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 8 06:52:54 PDT 2025
================
@@ -28,9 +28,9 @@ namespace llvm {
/// initialization.
template <unsigned NumBits>
class Bitset {
- typedef uintptr_t BitWord;
+ using BitWord = uintptr_t;
- enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
+ static constexpr unsigned BITWORD_SIZE = sizeof(BitWord) * CHAR_BIT;
----------------
kazutakahirata wrote:
Replaced `BITWORD_SIZE` with `BitwordBits`. Thanks!
https://github.com/llvm/llvm-project/pull/162430
More information about the llvm-commits
mailing list