Skip to content

Commit

Permalink
Merge pull request swiftlang#6300 from ahoppen/SR-2575-1-ordering-Dec…
Browse files Browse the repository at this point in the history
…lNames

[AST] Bugfix in ordering of DeclNames
  • Loading branch information
ahoppen authored Dec 15, 2016
2 parents ad21e5f + 64aaacb commit 019ed12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/swift/AST/Identifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ class DeclName {
}

friend bool operator<=(DeclName lhs, DeclName rhs) {
return lhs.compare(lhs) <= 0;
return lhs.compare(rhs) <= 0;
}

friend bool operator>(DeclName lhs, DeclName rhs) {
return lhs.compare(lhs) > 0;
return lhs.compare(rhs) > 0;
}

friend bool operator>=(DeclName lhs, DeclName rhs) {
return lhs.compare(lhs) >= 0;
return lhs.compare(rhs) >= 0;
}

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

0 comments on commit 019ed12

Please sign in to comment.