[llvm] ba6e2cb - [BitVector] Define BitWord as uintptr_t
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 06:54:08 PDT 2019
Author: Simon Pilgrim
Date: 2019-10-29T13:53:04Z
New Revision: ba6e2cb54446de272b817661add0483c0aec26d4
URL: https://github.com/llvm/llvm-project/commit/ba6e2cb54446de272b817661add0483c0aec26d4
DIFF: https://github.com/llvm/llvm-project/commit/ba6e2cb54446de272b817661add0483c0aec26d4.diff
LOG: [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
Added:
Modified:
llvm/include/llvm/ADT/BitVector.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/BitVector.h b/llvm/include/llvm/ADT/BitVector.h
index d26cd80460f6..5284be8c4a02 100644
--- a/llvm/include/llvm/ADT/BitVector.h
+++ b/llvm/include/llvm/ADT/BitVector.h
@@ -71,7 +71,7 @@ template <typename BitVectorT> class const_set_bits_iterator_impl {
};
class BitVector {
- typedef unsigned long BitWord;
+ typedef uintptr_t BitWord;
enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
More information about the llvm-commits
mailing list