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 2d3c2ff commit 64aaacbCopy full SHA for 64aaacb
include/swift/AST/Identifier.h
@@ -375,15 +375,15 @@ class DeclName {
375
}
376
377
friend bool operator<=(DeclName lhs, DeclName rhs) {
378
- return lhs.compare(lhs) <= 0;
+ return lhs.compare(rhs) <= 0;
379
380
381
friend bool operator>(DeclName lhs, DeclName rhs) {
382
- return lhs.compare(lhs) > 0;
+ return lhs.compare(rhs) > 0;
383
384
385
friend bool operator>=(DeclName lhs, DeclName rhs) {
386
- return lhs.compare(lhs) >= 0;
+ return lhs.compare(rhs) >= 0;
387
388
389
void *getOpaqueValue() const { return SimpleOrCompound.getOpaqueValue(); }
0 commit comments