Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/include/llvm/ADT/Bitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

static_assert(BITWORD_SIZE == 64 || BITWORD_SIZE == 32,
"Unsupported word size");
Expand Down