aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-03 20:46:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-03 20:46:48 +0000
commitf9bb4c0ba3cd719009d94f1dec8d0f7af56c6d82 (patch)
tree4290385002608d1dc7b37407644b224dd8bc9b7f
parent1d6c41017d9e73d1a86eb5cdae60993c7aaa2b60 (diff)
downloadexternal_llvm-f9bb4c0ba3cd719009d94f1dec8d0f7af56c6d82.zip
external_llvm-f9bb4c0ba3cd719009d94f1dec8d0f7af56c6d82.tar.gz
external_llvm-f9bb4c0ba3cd719009d94f1dec8d0f7af56c6d82.tar.bz2
TopLevelMap[] reference is a pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97661 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/ScopedHashTable.h2
1 files changed, 1 insertions, 1 deletions
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) {