From: Daniel Berlin Date: Tue, 31 Jan 2017 22:01:08 +0000 (+0000) Subject: ScopedHashTable lookup should be const X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2913cb380e80863d34435a989691adc21bee402;p=llvm ScopedHashTable lookup should be const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293695 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ScopedHashTable.h b/include/llvm/ADT/ScopedHashTable.h index ad805b0991c..d52128e294a 100644 --- a/include/llvm/ADT/ScopedHashTable.h +++ b/include/llvm/ADT/ScopedHashTable.h @@ -182,8 +182,8 @@ public: return TopLevelMap.count(Key); } - V lookup(const K &Key) { - typename DenseMap::iterator I = TopLevelMap.find(Key); + V lookup(const K &Key) const { + auto I = TopLevelMap.find(Key); if (I != TopLevelMap.end()) return I->second->getValue();