aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SmallBitVector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/SmallBitVector.h')
-rw-r--r--include/llvm/ADT/SmallBitVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallBitVector.h b/include/llvm/ADT/SmallBitVector.h
index e2420e049b..346fb1ca43 100644
--- a/include/llvm/ADT/SmallBitVector.h
+++ b/include/llvm/ADT/SmallBitVector.h
@@ -35,7 +35,7 @@ class SmallBitVector {
PointerIntPair<BitVector *, 1, uintptr_t> X;
// The number of bits in this class.
- static const size_t NumBaseBits = sizeof(X) * CHAR_BIT;
+ static const size_t NumBaseBits = sizeof(uintptr_t) * CHAR_BIT;
// One bit is used to discriminate between small and large mode. The
// remaining bits are used for the small-mode representation.