summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SparseBitVector.h
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-06-20 12:20:56 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-06-20 12:20:56 +0000
commit212e2b9c8dc74b16bd6297243c18064bae9ea113 (patch)
tree188f556b3fbef0c78ef9bb89c4e45155b347311c /include/llvm/ADT/SparseBitVector.h
parent7d5bff0d5a236a5e3a6f6a159d2a6607fb76368a (diff)
downloadllvm-212e2b9c8dc74b16bd6297243c18064bae9ea113.tar.gz
llvm-212e2b9c8dc74b16bd6297243c18064bae9ea113.tar.bz2
llvm-212e2b9c8dc74b16bd6297243c18064bae9ea113.tar.xz
Reverting size_type for the containers from size_type to unsigned.
Various places in LLVM assume that container size and count are unsigned and do not use the container size_type. Therefore they break compilation (or possibly executation) for LP64 systems where size_t is 64 bit while unsigned is still 32 bit. If we'll ever that many items in the container size_type could be made size_t for a specific containers after reviweing its other uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SparseBitVector.h')
-rw-r--r--include/llvm/ADT/SparseBitVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h
index 16106a7d63..36754d6823 100644
--- a/include/llvm/ADT/SparseBitVector.h
+++ b/include/llvm/ADT/SparseBitVector.h
@@ -45,7 +45,7 @@ struct SparseBitVectorElement
: public ilist_node<SparseBitVectorElement<ElementSize> > {
public:
typedef unsigned long BitWord;
- typedef size_t size_type;
+ typedef unsigned size_type;
enum {
BITWORD_SIZE = sizeof(BitWord) * CHAR_BIT,
BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,