X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FADT%2FImmutableMap.h;h=52708bc8a10873ae2e11f9c08b5b60d46f5afc67;hb=76d38384542e2f596e14eb8e80b8e1c6a2652fd1;hp=00d59028aa07a04bc34c654ca7c485d8f2814ac1;hpb=1c7a666fcef22e75dc675b06444f5a894f54d7be;p=oota-llvm.git 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; } //===--------------------------------------------------===//