Use array_pod_sort instead of std::sort

Per Rafael's review of r194514.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194926 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2013-11-16 16:15:56 +00:00
parent e9cdbf68e5
commit 0fb32eb56a

View File

@ -372,7 +372,7 @@ static void accumulateAndSortLibcalls(std::vector<StringRef> &Libcalls,
= Lowering->getLibcallName(static_cast<RTLIB::Libcall>(I)))
Libcalls.push_back(Name);
std::sort(Libcalls.begin(), Libcalls.end());
array_pod_sort(Libcalls.begin(), Libcalls.end());
Libcalls.erase(std::unique(Libcalls.begin(), Libcalls.end()),
Libcalls.end());
}