From 638b8b446e7f08d348fe4f3b290c08f6854fc8ba Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 23 Feb 2009 17:28:16 +0000 Subject: [PATCH] Correctly implement ImmutableMap::getMaxElement() by getting the actual pair. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65327 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ImmutableMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h index 00d59028aa0..52708bc8a10 100644 --- a/include/llvm/ADT/ImmutableMap.h +++ b/include/llvm/ADT/ImmutableMap.h @@ -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; } //===--------------------------------------------------===// -- 2.11.0