r351137 - [Sema] Change std::sort to llvm::sort
Mandeep Singh Grang via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 14 15:45:58 PST 2019
Author: mgrang
Date: Mon Jan 14 15:45:58 2019
New Revision: 351137
URL: http://llvm.org/viewvc/llvm-project?rev=351137&view=rev
Log:
[Sema] Change std::sort to llvm::sort
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=351137&r1=351136&r2=351137&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Mon Jan 14 15:45:58 2019
@@ -2610,8 +2610,8 @@ bool Sema::CheckHexagonBuiltinCpu(unsign
return LHS.BuiltinID < RHS.BuiltinID;
};
static const bool SortOnce =
- (std::sort(std::begin(ValidCPU), std::end(ValidCPU), SortCmp),
- std::sort(std::begin(ValidHVX), std::end(ValidHVX), SortCmp), true);
+ (llvm::sort(ValidCPU, SortCmp),
+ llvm::sort(ValidHVX, SortCmp), true);
(void)SortOnce;
auto LowerBoundCmp = [](const BuiltinAndString &BI, unsigned BuiltinID) {
return BI.BuiltinID < BuiltinID;
@@ -2860,7 +2860,7 @@ bool Sema::CheckHexagonBuiltinArgument(u
// Use a dynamically initialized static to sort the table exactly once on
// first run.
static const bool SortOnce =
- (std::sort(std::begin(Infos), std::end(Infos),
+ (llvm::sort(Infos,
[](const BuiltinInfo &LHS, const BuiltinInfo &RHS) {
return LHS.BuiltinID < RHS.BuiltinID;
}),
More information about the cfe-commits
mailing list