[PATCH] D20930: Adding reserve and capacity methods to FoldingSet
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 3 03:36:17 PDT 2016
bkramer added inline comments.
================
Comment at: lib/Support/FoldingSet.cpp:304
@@ +303,3 @@
+void FoldingSetImpl::GrowHashTable() {
+ GrowHashTable(NumBuckets * 2);
+}
----------------
So the capacity() is NumBuckets*2 and we're growing to that capacity? I'm confused. Either one of those interfaces is wrong or we're just missing docs.
http://reviews.llvm.org/D20930
More information about the llvm-commits
mailing list