projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make SmallPtrSet iterators real iterators
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
BitVector.h
diff --git
a/include/llvm/ADT/BitVector.h
b/include/llvm/ADT/BitVector.h
index 23fde26e142ddfc1f88bcb0d26df2dc09a689435..9c046efaaddd9cf7bfec7d6d70b37e23f848417e 100644
(file)
--- a/
include/llvm/ADT/BitVector.h
+++ b/
include/llvm/ADT/BitVector.h
@@
-17,6
+17,7
@@
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <cassert>
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <cassert>
+#include <climits>
#include <cstring>
namespace llvm {
#include <cstring>
namespace llvm {
@@
-24,7
+25,7
@@
namespace llvm {
class BitVector {
typedef unsigned long BitWord;
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.
BitWord *Bits; // Actual bits.
unsigned Size; // Size of bitvector in bits.