[BitVector] Define BitWord as uintptr_t

Define BitVector::BitWord as uintptr_t instead of unsigned long, as long does not necessarily translates to a pointer size (especially on 64-bit Visual Studio).

Committed on behalf of @ekatz (Ehud Katz)

Differential Revision: https://reviews.llvm.org/D69336
This commit is contained in:
Simon Pilgrim 2019-10-29 13:52:32 +00:00
parent 09feea972d
commit ba6e2cb544
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public:
};
class BitVector {
typedef unsigned long BitWord;
typedef uintptr_t BitWord;
enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };