Use array_pod_sort instead of std::sort

Per Rafael's review of r194514.

llvm-svn: 194926
This commit is contained in:
Duncan P. N. Exon Smith 2013-11-16 16:15:56 +00:00
parent 0519e29d1b
commit 9d5d4717ed

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());
}