[llvm-commits] [llvm] r52425 - /llvm/trunk/lib/Support/FoldingSet.cpp
Ted Kremenek
kremenek at apple.com
Tue Jun 17 12:12:43 PDT 2008
Author: kremenek
Date: Tue Jun 17 14:12:43 2008
New Revision: 52425
URL: http://llvm.org/viewvc/llvm-project?rev=52425&view=rev
Log:
Consistently set "Buckets[NumBuckets] = reinterpret_cast<void*>(-1)" throughout FoldingSet.cpp.
Modified:
llvm/trunk/lib/Support/FoldingSet.cpp
Modified: llvm/trunk/lib/Support/FoldingSet.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/FoldingSet.cpp?rev=52425&r1=52424&r2=52425&view=diff
==============================================================================
--- llvm/trunk/lib/Support/FoldingSet.cpp (original)
+++ llvm/trunk/lib/Support/FoldingSet.cpp Tue Jun 17 14:12:43 2008
@@ -170,7 +170,7 @@
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;
More information about the llvm-commits
mailing list