Use array_pod_sort instead of std::sort
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 16 Nov 2013 16:15:56 +0000 (16:15 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 16 Nov 2013 16:15:56 +0000 (16:15 +0000)
Per Rafael's review of r194514.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194926 91177308-0d34-0410-b5e6-96231b3b80d8

lib/LTO/LTOCodeGenerator.cpp

index 02bb184c77244e07fc41825554ded408d5bdbdb5..2b3648e1f3bf03dc3bfd93c889afdfcc451c4bce 100644 (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());
 }