aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/SmallBitVector.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-05 15:28:21 +0000
committerDan Gohman <gohman@apple.com>2010-01-05 15:28:21 +0000
commitad2cee44e02b4fa8d5888a80e39c01a9604b409e (patch)
tree2bc9565c4c4cb79d21e2ef056e777718f3b22d68 /include/llvm/ADT/SmallBitVector.h
parentcb89afc965c66029ae38712d1c52f5bbe4dee942 (diff)
downloadexternal_llvm-ad2cee44e02b4fa8d5888a80e39c01a9604b409e.zip
external_llvm-ad2cee44e02b4fa8d5888a80e39c01a9604b409e.tar.gz
external_llvm-ad2cee44e02b4fa8d5888a80e39c01a9604b409e.tar.bz2
Some versions of GCC don't like non-static data members in sizeof
in this context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92731 91177308-0d34-0410-b5e6-96231b3b80d8
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 e2420e0..346fb1c 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.