Skip to content

Commit 0cac726

Browse files
committedSep 27, 2018
llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...)
Summary: The convenience wrapper in STLExtras is available since rL342102. Reviewers: dblaikie, javed.absar, JDevlieghere, andreadb Subscribers: MatzeB, sanjoy, arsenm, dschuff, mehdi_amini, sdardis, nemanjai, jvesely, nhaehnle, sbc100, jgravelle-google, eraman, aheejin, kbarton, JDevlieghere, javed.absar, gbedwell, jrtc27, mgrang, atanasyan, steven_wu, george.burgess.iv, dexonsmith, kristina, jsji, llvm-commits Differential Revision: https://reviews.llvm.org/D52573 llvm-svn: 343163
1 parent f1c9649 commit 0cac726

File tree

124 files changed

+395
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+395
-443
lines changed
 

‎llvm/include/llvm/Analysis/LoopInfoImpl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ void LoopInfoBase<BlockT, LoopT>::print(raw_ostream &OS) const {
640640

641641
template <typename T>
642642
bool compareVectors(std::vector<T> &BB1, std::vector<T> &BB2) {
643-
llvm::sort(BB1.begin(), BB1.end());
644-
llvm::sort(BB2.begin(), BB2.end());
643+
llvm::sort(BB1);
644+
llvm::sort(BB2);
645645
return BB1 == BB2;
646646
}
647647

‎llvm/include/llvm/CodeGen/SlotIndexes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ class raw_ostream;
676676
idx2MBBMap.push_back(IdxMBBPair(startIdx, mbb));
677677

678678
renumberIndexes(newItr);
679-
llvm::sort(idx2MBBMap.begin(), idx2MBBMap.end(), Idx2MBBCompare());
679+
llvm::sort(idx2MBBMap, Idx2MBBCompare());
680680
}
681681

682682
/// Free the resources that were required to maintain a SlotIndex.

0 commit comments

Comments
 (0)