diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-17 10:39:45 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-17 10:39:45 -0800 |
commit | 352fcfc69788093b50971a9f5540a61fa0887ce1 (patch) | |
tree | 9775f7738de13ae8fdb779e74c51d8f2734cd861 /llvm/lib/Support/DebugCounter.cpp | |
parent | 7e9e6ac526ebd90fe8ec0b8d2bb6edd3516ab908 (diff) | |
download | llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.zip llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.gz llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.bz2 |
[llvm] Use llvm::sort (NFC)
Diffstat (limited to 'llvm/lib/Support/DebugCounter.cpp')
-rw-r--r-- | llvm/lib/Support/DebugCounter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/DebugCounter.cpp b/llvm/lib/Support/DebugCounter.cpp index 8c579f3..7bb231c 100644 --- a/llvm/lib/Support/DebugCounter.cpp +++ b/llvm/lib/Support/DebugCounter.cpp @@ -118,7 +118,7 @@ void DebugCounter::push_back(const std::string &Val) { void DebugCounter::print(raw_ostream &OS) const { SmallVector<StringRef, 16> CounterNames(RegisteredCounters.begin(), RegisteredCounters.end()); - sort(CounterNames.begin(), CounterNames.end()); + sort(CounterNames); auto &Us = instance(); OS << "Counters and values:\n"; |