From: Ted Kremenek Date: Tue, 17 Jun 2008 19:12:43 +0000 (+0000) Subject: Consistently set "Buckets[NumBuckets] = reinterpret_cast(-1)" throughout Foldi... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8d6a58c5d56610c2860d0e4a8acb81ff65635c42;p=oota-llvm.git Consistently set "Buckets[NumBuckets] = reinterpret_cast(-1)" throughout FoldingSet.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52425 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index 6daa157af13..80140438714 100644 --- 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(-2); + Buckets[NumBuckets] = reinterpret_cast(-1); } FoldingSetImpl::~FoldingSetImpl() { delete [] Buckets;