aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/SmallPtrSet.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-30 18:32:48 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-30 18:32:48 +0000
commite10fff6f8802d6ab4045d9d0bb22e6f37e6d3d0b (patch)
tree43c399f02d31cd201b69bbc1221a1f30202b4dd3 /include/llvm/ADT/SmallPtrSet.h
parentaea4fe2862ce17acc6ce943df589ee8d5eb05adf (diff)
downloadexternal_llvm-e10fff6f8802d6ab4045d9d0bb22e6f37e6d3d0b.tar.gz
external_llvm-e10fff6f8802d6ab4045d9d0bb22e6f37e6d3d0b.tar.bz2
external_llvm-e10fff6f8802d6ab4045d9d0bb22e6f37e6d3d0b.zip
Prevent infinite growth of SmallPtrSet instances.
Rehash but don't grow when full of tombstones. Patch by José Fonseca! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallPtrSet.h')
-rw-r--r--include/llvm/ADT/SmallPtrSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h
index ff32ba87a2..9992858d67 100644
--- a/include/llvm/ADT/SmallPtrSet.h
+++ b/include/llvm/ADT/SmallPtrSet.h
@@ -133,7 +133,7 @@ private:
void shrink_and_clear();
/// Grow - Allocate a larger backing store for the buckets and move it over.
- void Grow();
+ void Grow(unsigned NewSize);
void operator=(const SmallPtrSetImpl &RHS); // DO NOT IMPLEMENT.
protected: