We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21b35db commit 8bfd053Copy full SHA for 8bfd053
llvm/include/llvm/ADT/EquivalenceClasses.h
@@ -180,8 +180,8 @@ template <class ElemTy> class EquivalenceClasses {
180
}
181
182
/// Returns true if \p V is contained an equivalence class.
183
- bool contains(const ElemTy &V) const {
184
- return TheMapping.find(V) != TheMapping.end();
+ [[nodiscard]] bool contains(const ElemTy &V) const {
+ return TheMapping.contains(V);
185
186
187
/// getLeaderValue - Return the leader for the specified value that is in the
0 commit comments