1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Some versions of GCC don't like non-static data members in sizeof

in this context.

llvm-svn: 92731
This commit is contained in:
Dan Gohman 2010-01-05 15:28:21 +00:00
parent 090f279ac5
commit 66ee3816ef

View File

@ -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.