llvm.org GIT mirror llvm / dafe48e
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++? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153834 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
551551 // Note that it doesn't matter that we are iterating over a non-stable order
552552 // here to do this, it doesn't matter which order the functions are deleted
553553 // in.
554 std::sort(FunctionsToRemove.begin(), FunctionsToRemove.end());
554 array_pod_sort(FunctionsToRemove.begin(), FunctionsToRemove.end());
555555 FunctionsToRemove.erase(std::unique(FunctionsToRemove.begin(),
556556 FunctionsToRemove.end()),
557557 FunctionsToRemove.end());