forked from OSchip/llvm-project
Consistently set "Buckets[NumBuckets] = reinterpret_cast<void*>(-1)" throughout FoldingSet.cpp.
llvm-svn: 52425
This commit is contained in:
parent
2505e0c36b
commit
90ada832be
|
@ -170,7 +170,7 @@ FoldingSetImpl::FoldingSetImpl(unsigned Log2InitSize) : NumNodes(0) {
|
|||
memset(Buckets, 0, NumBuckets*sizeof(void*));
|
||||
|
||||
// Set the very last bucket to be a non-null "pointer".
|
||||
Buckets[NumBuckets] = reinterpret_cast<void*>(-2);
|
||||
Buckets[NumBuckets] = reinterpret_cast<void*>(-1);
|
||||
}
|
||||
FoldingSetImpl::~FoldingSetImpl() {
|
||||
delete [] Buckets;
|
||||
|
|
Loading…
Reference in New Issue