From 23430d8ce19dbfd3b7774cd261b1d4420a80878e Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Sun, 7 May 2017 05:29:34 +0000 Subject: [PATCH] Use array_pod_sort instead of std::sort git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302367 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ScalarEvolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index e19bca4a236..3429a04eaa2 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -9642,7 +9642,7 @@ void ScalarEvolution::findArrayDimensions(SmallVectorImpl &Terms, }); // Remove duplicates. - std::sort(Terms.begin(), Terms.end()); + array_pod_sort(Terms.begin(), Terms.end()); Terms.erase(std::unique(Terms.begin(), Terms.end()), Terms.end()); // Put larger terms first.