Skip to content

Commit 5b414cb

Browse files
committed
[llvm][TextAPI] Ignore deployment version in target comparator
(cherry picked from commit d4c7802)
1 parent 874e2f8 commit 5b414cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/TextAPI/Target.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ inline bool operator!=(const Target &LHS, const Target &RHS) {
5454
}
5555

5656
inline bool operator<(const Target &LHS, const Target &RHS) {
57-
return std::tie(LHS.Arch, LHS.Platform, LHS.MinDeployment) <
58-
std::tie(RHS.Arch, RHS.Platform, RHS.MinDeployment);
57+
// In most cases the deployment version is not useful to compare.
58+
return std::tie(LHS.Arch, LHS.Platform) < std::tie(RHS.Arch, RHS.Platform);
5959
}
6060

6161
inline bool operator==(const Target &LHS, const Architecture &RHS) {

0 commit comments

Comments
 (0)