Make SmallPtrSet iterators real iterators
[oota-llvm.git] / include / llvm / ADT / BitVector.h
index 23fde26e142ddfc1f88bcb0d26df2dc09a689435..9c046efaaddd9cf7bfec7d6d70b37e23f848417e 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Support/MathExtras.h"
 #include <algorithm>
 #include <cassert>
+#include <climits>
 #include <cstring>
 
 namespace llvm {
@@ -24,7 +25,7 @@ namespace llvm {
 class BitVector {
   typedef unsigned long BitWord;
 
-  enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * 8 };
+  enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
 
   BitWord  *Bits;        // Actual bits.
   unsigned Size;         // Size of bitvector in bits.