projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26bb50a
)
Consistently set "Buckets[NumBuckets] = reinterpret_cast<void*>(-1)" throughout Foldi...
author
Ted Kremenek
<kremenek@apple.com>
Tue, 17 Jun 2008 19:12:43 +0000
(19:12 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Tue, 17 Jun 2008 19:12:43 +0000
(19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52425
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/FoldingSet.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/FoldingSet.cpp
b/lib/Support/FoldingSet.cpp
index 6daa157af1316087b983f5860d5614aa20d9cbf0..80140438714d99284d247802e6d39d7653b4f4ca 100644
(file)
--- a/
lib/Support/FoldingSet.cpp
+++ b/
lib/Support/FoldingSet.cpp
@@
-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;