[llvm] d4c7802 - [llvm][TextAPI] Ignore deployment version in target comparator
Cyndy Ishida via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 3 08:14:30 PDT 2023
Author: Cyndy Ishida
Date: 2023-04-03T08:12:30-07:00
New Revision: d4c780210c3019a9f6067f4aee2446281ed01515
URL: https://github.com/llvm/llvm-project/commit/d4c780210c3019a9f6067f4aee2446281ed01515
DIFF: https://github.com/llvm/llvm-project/commit/d4c780210c3019a9f6067f4aee2446281ed01515.diff
LOG: [llvm][TextAPI] Ignore deployment version in target comparator
Added:
Modified:
llvm/include/llvm/TextAPI/Target.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/TextAPI/Target.h b/llvm/include/llvm/TextAPI/Target.h
index c8a1c4f269d5f..edcc0708d1478 100644
--- a/llvm/include/llvm/TextAPI/Target.h
+++ b/llvm/include/llvm/TextAPI/Target.h
@@ -54,8 +54,8 @@ inline bool operator!=(const Target &LHS, const Target &RHS) {
}
inline bool operator<(const Target &LHS, const Target &RHS) {
- return std::tie(LHS.Arch, LHS.Platform, LHS.MinDeployment) <
- std::tie(RHS.Arch, RHS.Platform, RHS.MinDeployment);
+ // In most cases the deployment version is not useful to compare.
+ return std::tie(LHS.Arch, LHS.Platform) < std::tie(RHS.Arch, RHS.Platform);
}
inline bool operator==(const Target &LHS, const Architecture &RHS) {
More information about the llvm-commits
mailing list