Mark count method const.
authorChris Lattner <sabre@nondot.org>
Fri, 5 Oct 2007 17:40:38 +0000 (17:40 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Oct 2007 17:40:38 +0000 (17:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42639 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseSet.h

index 1a1de8b76f92bb3ae7520344ee2b47752de52fa2..b19dc5e2fc34224bf2a09a4d9a56db63bdc20d91 100644 (file)
@@ -38,7 +38,7 @@ public:
     TheMap.clear();
   }
   
-  bool count(const ValueT &V) {
+  bool count(const ValueT &V) const {
     return TheMap.count(V);
   }