[llvm-commits] [llvm] r135717 - /llvm/trunk/include/llvm/ADT/DenseSet.h
Benjamin Kramer
benny.kra at googlemail.com
Thu Jul 21 16:03:59 PDT 2011
Author: d0k
Date: Thu Jul 21 18:03:59 2011
New Revision: 135717
URL: http://llvm.org/viewvc/llvm-project?rev=135717&view=rev
Log:
Initialize DenseSets lazily.
Modified:
llvm/trunk/include/llvm/ADT/DenseSet.h
Modified: llvm/trunk/include/llvm/ADT/DenseSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseSet.h?rev=135717&r1=135716&r2=135717&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseSet.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseSet.h Thu Jul 21 18:03:59 2011
@@ -28,7 +28,7 @@
MapTy TheMap;
public:
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
- explicit DenseSet(unsigned NumInitBuckets = 64) : TheMap(NumInitBuckets) {}
+ explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
bool empty() const { return TheMap.empty(); }
unsigned size() const { return TheMap.size(); }
More information about the llvm-commits
mailing list