Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions llvm/include/llvm/ADT/DenseMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,8 @@ class DenseMapBase : public DebugEpochBase {
return contains(Val) ? 1 : 0;
}

iterator find(const_arg_type_t<KeyT> Val) {
if (BucketT *Bucket = doFind(Val))
return makeIterator(
Bucket, shouldReverseIterate<KeyT>() ? getBuckets() : getBucketsEnd(),
*this, true);
return end();
}
const_iterator find(const_arg_type_t<KeyT> Val) const {
if (const BucketT *Bucket = doFind(Val))
return makeConstIterator(
Bucket, shouldReverseIterate<KeyT>() ? getBuckets() : getBucketsEnd(),
*this, true);
return end();
}
iterator find(const_arg_type_t<KeyT> Val) { return find_as(Val); }
const_iterator find(const_arg_type_t<KeyT> Val) const { return find_as(Val); }

/// Alternate version of find() which allows a different, and possibly
/// less expensive, key type.
Expand Down