Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

[IndexDataStore] Sort unit names using std::sort() #312

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/IndexDataStore/IndexDataStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool IndexDataStoreImpl::foreachUnitName(bool sorted,
}

if (sorted) {
llvm::array_pod_sort(filenames.begin(), filenames.end());
std::sort(filenames.begin(), filenames.end());
for (auto &fname : filenames)
if (!receiver(fname))
return false;
Expand Down