mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Consistently set "Buckets[NumBuckets] = reinterpret_cast<void*>(-1)" throughout FoldingSet.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26bb50ab48
commit
8d6a58c5d5
@ -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
Block a user