Fixed bug in SmallDenseMap where it wouldn't leave enough space for an empty bucket...
[oota-llvm.git] / include / llvm / ADT / ImmutableMap.h
index 7386a3b9a1e3759e14c887a518c700c61facf3fe..4883c5ba0a6b0e2e56fcd3eb0601914127826aaf 100644 (file)
@@ -117,9 +117,13 @@ public:
       return ImmutableMap(Canonicalize ? F.getCanonicalTree(T): T);
     }
 
+    typename TreeTy::Factory *getTreeFactory() const {
+      return const_cast<typename TreeTy::Factory *>(&F);
+    }
+
   private:
-    Factory(const Factory& RHS); // DO NOT IMPLEMENT
-    void operator=(const Factory& RHS); // DO NOT IMPLEMENT
+    Factory(const Factory& RHS) LLVM_DELETED_FUNCTION;
+    void operator=(const Factory& RHS) LLVM_DELETED_FUNCTION;
   };
 
   bool contains(key_type_ref K) const {