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