aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LTO
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2013-11-16 16:15:56 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2013-11-16 16:15:56 +0000
commit0fb32eb56aabb24950bbfecc927596a3fffabcb1 (patch)
tree087ea42192ddfedf83f8b3490f9646fa86ca7ea0 /lib/LTO
parente9cdbf68e542bbb79597d6233dd2a339c89862a2 (diff)
downloadexternal_llvm-0fb32eb56aabb24950bbfecc927596a3fffabcb1.zip
external_llvm-0fb32eb56aabb24950bbfecc927596a3fffabcb1.tar.gz
external_llvm-0fb32eb56aabb24950bbfecc927596a3fffabcb1.tar.bz2
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
Diffstat (limited to 'lib/LTO')
-rw-r--r--lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp
index 02bb184..2b3648e 100644
--- a/lib/LTO/LTOCodeGenerator.cpp
+++ b/lib/LTO/LTOCodeGenerator.cpp
@@ -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());
}