From bca98326b6fd311c917fc2407b4b05d7c90f31b2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Oct 2007 17:40:38 +0000 Subject: [PATCH] Mark count method const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42639 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/DenseSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index 1a1de8b76f9..b19dc5e2fc3 100644 --- a/include/llvm/ADT/DenseSet.h +++ b/include/llvm/ADT/DenseSet.h @@ -38,7 +38,7 @@ public: TheMap.clear(); } - bool count(const ValueT &V) { + bool count(const ValueT &V) const { return TheMap.count(V); }