diff options
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 11c56ffebd..78bd50e98a 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -243,7 +243,7 @@ void LoopStrengthReduce::DeleteTriviallyDeadInstructions() { // Sort the deadinsts list so that we can trivially eliminate duplicates as we // go. The code below never adds a non-dead instruction to the worklist, but // callers may not be so careful. - std::sort(DeadInsts.begin(), DeadInsts.end()); + array_pod_sort(DeadInsts.begin(), DeadInsts.end()); // Drop duplicate instructions and those with uses. for (unsigned i = 0, e = DeadInsts.size()-1; i < e; ++i) { |