File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1550,18 +1550,14 @@ struct OutputIntrinsic {
1550
1550
std::string Name;
1551
1551
ComparableStringVector ParamValues;
1552
1552
bool operator <(const OutputIntrinsic &rhs) const {
1553
- if (Name != rhs.Name )
1554
- return Name < rhs.Name ;
1555
- return ParamValues < rhs.ParamValues ;
1553
+ return std::tie (Name, ParamValues) < std::tie (rhs.Name , rhs.ParamValues );
1556
1554
}
1557
1555
};
1558
1556
struct MergeableGroup {
1559
1557
std::string Code;
1560
1558
ComparableStringVector ParamTypes;
1561
1559
bool operator <(const MergeableGroup &rhs) const {
1562
- if (Code != rhs.Code )
1563
- return Code < rhs.Code ;
1564
- return ParamTypes < rhs.ParamTypes ;
1560
+ return std::tie (Code, ParamTypes) < std::tie (rhs.Code , rhs.ParamTypes );
1565
1561
}
1566
1562
};
1567
1563
Original file line number Diff line number Diff line change @@ -492,11 +492,8 @@ class Intrinsic {
492
492
493
493
bool operator <(const Intrinsic &Other) const {
494
494
// Sort lexicographically on a three-tuple (ArchGuard, TargetGuard, Name)
495
- if (ArchGuard != Other.ArchGuard )
496
- return ArchGuard < Other.ArchGuard ;
497
- if (TargetGuard != Other.TargetGuard )
498
- return TargetGuard < Other.TargetGuard ;
499
- return Name < Other.Name ;
495
+ return std::tie (ArchGuard, TargetGuard, Name) <
496
+ std::tie (Other.ArchGuard , Other.TargetGuard , Other.Name );
500
497
}
501
498
502
499
ClassKind getClassKind (bool UseClassBIfScalar = false ) {
You can’t perform that action at this time.
0 commit comments