From a84f3d9a978d0cfdf0e4b5fbd1095a965a30110b Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 3 Mar 2010 20:46:48 +0000 Subject: TopLevelMap[] reference is a pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97661 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ScopedHashTable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/ADT') diff --git a/include/llvm/ADT/ScopedHashTable.h b/include/llvm/ADT/ScopedHashTable.h index f325e2b..b5ca374 100644 --- a/include/llvm/ADT/ScopedHashTable.h +++ b/include/llvm/ADT/ScopedHashTable.h @@ -139,7 +139,7 @@ public: } V lookup(const K &Key) { - return TopLevelMap[Key].getValue(); + return TopLevelMap[Key]->getValue(); } void insert(const K &Key, const V &Val) { -- cgit v1.1