From: Duncan P. N. Exon Smith Date: Sat, 16 Nov 2013 16:15:56 +0000 (+0000) Subject: Use array_pod_sort instead of std::sort X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0fb32eb56aabb24950bbfecc927596a3fffabcb1;p=oota-llvm.git 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 --- diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index 02bb184c772..2b3648e1f3b 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/lib/LTO/LTOCodeGenerator.cpp @@ -372,7 +372,7 @@ static void accumulateAndSortLibcalls(std::vector &Libcalls, = Lowering->getLibcallName(static_cast(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()); }