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 552ee3c commit 0db995eCopy full SHA for 0db995e
llvm/include/llvm/ADT/ArrayRef.h
@@ -547,7 +547,8 @@ namespace llvm {
547
}
548
549
template <typename T>
550
- inline bool operator==(SmallVectorImpl<T> &LHS, ArrayRef<T> RHS) {
+ [[nodiscard]] inline bool operator==(const SmallVectorImpl<T> &LHS,
551
+ ArrayRef<T> RHS) {
552
return ArrayRef<T>(LHS).equals(RHS);
553
554
@@ -557,7 +558,8 @@ namespace llvm {
557
558
559
560
- inline bool operator!=(SmallVectorImpl<T> &LHS, ArrayRef<T> RHS) {
561
+ [[nodiscard]] inline bool operator!=(const SmallVectorImpl<T> &LHS,
562
563
return !(LHS == RHS);
564
565
0 commit comments