summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-01 10:41:24 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-01 10:41:24 +0000
commit45ae88f5fc451ffd73bda71c09e38f4ff742411f (patch)
tree6c4679adc53b7637c4ac6eb171a58e160561b107 /llvm/lib
parentcdb1f8cff1446d042629a0203764bcc30b6a7a4b (diff)
downloadbcm5719-llvm-45ae88f5fc451ffd73bda71c09e38f4ff742411f.tar.gz
bcm5719-llvm-45ae88f5fc451ffd73bda71c09e38f4ff742411f.zip
Belatedly address some code review from Chris.
As a side note, I really dislike array_pod_sort... Do we really still care about any STL implementations that get this so wrong? Does libc++? llvm-svn: 153834
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 2d703980c33..8a9d14977a7 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -552,7 +552,7 @@ bool Inliner::removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly) {
// Note that it doesn't matter that we are iterating over a non-stable order
// here to do this, it doesn't matter which order the functions are deleted
// in.
- std::sort(FunctionsToRemove.begin(), FunctionsToRemove.end());
+ array_pod_sort(FunctionsToRemove.begin(), FunctionsToRemove.end());
FunctionsToRemove.erase(std::unique(FunctionsToRemove.begin(),
FunctionsToRemove.end()),
FunctionsToRemove.end());
OpenPOWER on IntegriCloud