[llvm-commits] [llvm] r65327 - /llvm/trunk/include/llvm/ADT/ImmutableMap.h
Ted Kremenek
kremenek at apple.com
Mon Feb 23 09:28:16 PST 2009
Author: kremenek
Date: Mon Feb 23 11:28:16 2009
New Revision: 65327
URL: http://llvm.org/viewvc/llvm-project?rev=65327&view=rev
Log:
Correctly implement ImmutableMap::getMaxElement() by getting the actual <key, value> pair.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableMap.h?rev=65327&r1=65326&r2=65327&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableMap.h Mon Feb 23 11:28:16 2009
@@ -207,7 +207,7 @@
/// which key is the highest in the ordering of keys in the map. This
/// method returns NULL if the map is empty.
value_type* getMaxElement() const {
- return Root ? &(Root->getMaxElement()) : 0;
+ return Root ? &(Root->getMaxElement()->getValue()) : 0;
}
//===--------------------------------------------------===//
More information about the llvm-commits
mailing list