[llvm-commits] [llvm] r97661 - /llvm/trunk/include/llvm/ADT/ScopedHashTable.h

Evan Cheng evan.cheng at apple.com
Wed Mar 3 12:46:48 PST 2010


Author: evancheng
Date: Wed Mar  3 14:46:48 2010
New Revision: 97661

URL: http://llvm.org/viewvc/llvm-project?rev=97661&view=rev
Log:
TopLevelMap[] reference is a pointer.

Modified:
    llvm/trunk/include/llvm/ADT/ScopedHashTable.h

Modified: llvm/trunk/include/llvm/ADT/ScopedHashTable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ScopedHashTable.h?rev=97661&r1=97660&r2=97661&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ScopedHashTable.h (original)
+++ llvm/trunk/include/llvm/ADT/ScopedHashTable.h Wed Mar  3 14:46:48 2010
@@ -139,7 +139,7 @@
   }
 
   V lookup(const K &Key) {
-    return TopLevelMap[Key].getValue();
+    return TopLevelMap[Key]->getValue();
   }
 
   void insert(const K &Key, const V &Val) {





More information about the llvm-commits mailing list