File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,11 @@ struct DenseMapInfo<std::pair<T, U>> {
139
139
using SecondInfo = DenseMapInfo<U>;
140
140
141
141
static constexpr Pair getEmptyKey () {
142
- return std::make_pair (FirstInfo::getEmptyKey (),
143
- SecondInfo::getEmptyKey ());
142
+ return {FirstInfo::getEmptyKey (), SecondInfo::getEmptyKey ()};
144
143
}
145
144
146
145
static constexpr Pair getTombstoneKey () {
147
- return std::make_pair (FirstInfo::getTombstoneKey (),
148
- SecondInfo::getTombstoneKey ());
146
+ return {FirstInfo::getTombstoneKey (), SecondInfo::getTombstoneKey ()};
149
147
}
150
148
151
149
static unsigned getHashValue (const Pair& PairVal) {
Original file line number Diff line number Diff line change @@ -1371,7 +1371,7 @@ class indexed_accessor_range
1371
1371
offset_base (const std::pair<BaseT, ptrdiff_t > &base, ptrdiff_t index) {
1372
1372
// We encode the internal base as a pair of the derived base and a start
1373
1373
// index into the derived base.
1374
- return std::make_pair ( base.first , base.second + index) ;
1374
+ return { base.first , base.second + index} ;
1375
1375
}
1376
1376
// / See `detail::indexed_accessor_range_base` for details.
1377
1377
static ReferenceT
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ class SparseMultiSet {
400
400
RangePair equal_range (const KeyT &K) {
401
401
iterator B = find (K);
402
402
iterator E = iterator (this , SMSNode::INVALID, B.SparseIdx );
403
- return std::make_pair ( B, E) ;
403
+ return { B, E} ;
404
404
}
405
405
406
406
// / Insert a new element at the tail of the subset list. Returns an iterator
Original file line number Diff line number Diff line change @@ -717,8 +717,8 @@ namespace llvm {
717
717
split (StringRef Separator) const {
718
718
size_t Idx = find (Separator);
719
719
if (Idx == npos)
720
- return std::make_pair ( *this , StringRef ()) ;
721
- return std::make_pair ( slice (0 , Idx), substr (Idx + Separator.size ())) ;
720
+ return { *this , StringRef ()} ;
721
+ return { slice (0 , Idx), substr (Idx + Separator.size ())} ;
722
722
}
723
723
724
724
// / Split into two substrings around the last occurrence of a separator
@@ -735,8 +735,8 @@ namespace llvm {
735
735
rsplit (StringRef Separator) const {
736
736
size_t Idx = rfind (Separator);
737
737
if (Idx == npos)
738
- return std::make_pair ( *this , StringRef ()) ;
739
- return std::make_pair ( slice (0 , Idx), substr (Idx + Separator.size ())) ;
738
+ return { *this , StringRef ()} ;
739
+ return { slice (0 , Idx), substr (Idx + Separator.size ())} ;
740
740
}
741
741
742
742
// / Split into substrings around the occurrences of a separator string.
You can’t perform that action at this time.
0 commit comments