Correctly implement ImmutableMap::getMaxElement() by getting the actual <key, value> pair.

llvm-svn: 65327
This commit is contained in:
Ted Kremenek 2009-02-23 17:28:16 +00:00
parent e60504d210
commit 7df3a5aec3
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ public:
/// 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;
}
//===--------------------------------------------------===//