aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/ImmutableMap.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h
index 6a551db690..ae2a335942 100644
--- a/include/llvm/ADT/ImmutableMap.h
+++ b/include/llvm/ADT/ImmutableMap.h
@@ -194,17 +194,15 @@ public:
iterator begin() const { return iterator(Root); }
iterator end() const { return iterator(); }
- TreeTy* SlimFind(key_type_ref K) const {
+ data_type* lookup(key_type_ref K) const {
if (Root) {
TreeTy* T = Root->find(K);
- if (T) return T;
+ if (T) return &T->getValue().second;
}
- return NULL;
+ return 0;
}
- // FIXME: Add 'find' that returns an iterator instead of a TreeTy*.
-
//===--------------------------------------------------===//
// Utility methods.
//===--------------------------------------------------===//