Skip to content

Commit 64aaacb

Browse files
committed
[AST] Bugfix in ordering of DeclNames
1 parent 2d3c2ff commit 64aaacb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/AST/Identifier.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,15 @@ class DeclName {
375375
}
376376

377377
friend bool operator<=(DeclName lhs, DeclName rhs) {
378-
return lhs.compare(lhs) <= 0;
378+
return lhs.compare(rhs) <= 0;
379379
}
380380

381381
friend bool operator>(DeclName lhs, DeclName rhs) {
382-
return lhs.compare(lhs) > 0;
382+
return lhs.compare(rhs) > 0;
383383
}
384384

385385
friend bool operator>=(DeclName lhs, DeclName rhs) {
386-
return lhs.compare(lhs) >= 0;
386+
return lhs.compare(rhs) >= 0;
387387
}
388388

389389
void *getOpaqueValue() const { return SimpleOrCompound.getOpaqueValue(); }

0 commit comments

Comments
 (0)