OSDN Git Service

Use array_pod_sort instead of std::sort
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sun, 7 May 2017 05:29:34 +0000 (05:29 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sun, 7 May 2017 05:29:34 +0000 (05:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302367 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index e19bca4..3429a04 100644 (file)
@@ -9642,7 +9642,7 @@ void ScalarEvolution::findArrayDimensions(SmallVectorImpl<const SCEV *> &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.