From c2913cb380e80863d34435a989691adc21bee402 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Tue, 31 Jan 2017 22:01:08 +0000 Subject: [PATCH] ScopedHashTable lookup should be const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293695 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ScopedHashTable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.40.0