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
4 changes: 2 additions & 2 deletions llvm/include/llvm/ADT/EquivalenceClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ template <class ElemTy> class EquivalenceClasses {
}

/// Returns true if \p V is contained an equivalence class.
bool contains(const ElemTy &V) const {
return TheMapping.find(V) != TheMapping.end();
[[nodiscard]] bool contains(const ElemTy &V) const {
return TheMapping.contains(V);
}

/// getLeaderValue - Return the leader for the specified value that is in the
Expand Down