From 9d5d4717edfe39feb6e630c243a4adb4b4258fb7 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Sat, 16 Nov 2013 16:15:56 +0000 Subject: [PATCH] Use array_pod_sort instead of std::sort Per Rafael's review of r194514. llvm-svn: 194926 --- lib/LTO/LTOCodeGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }