diff options
author | Vitaly Buka <vitalybuka@google.com> | 2018-05-09 20:42:11 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2018-05-09 20:42:11 +0000 |
commit | 4d9e83c2e00a1fc8aa7a1e8b367a21f731013c65 (patch) | |
tree | df6e35fdb4d65892218b9bfdb85e8809ccedad9b /lib/lsan | |
parent | f2e93289e1b4293f052ca0ef2838d9ff711b2136 (diff) |
[sanitizer] Cleanup sorting functions
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@331915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan')
-rw-r--r-- | lib/lsan/lsan_common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsan/lsan_common.cc b/lib/lsan/lsan_common.cc index 12ea8c2bb..bdc825d76 100644 --- a/lib/lsan/lsan_common.cc +++ b/lib/lsan/lsan_common.cc @@ -685,7 +685,7 @@ void LeakReport::ReportTopLeaks(uptr num_leaks_to_report) { uptr unsuppressed_count = UnsuppressedLeakCount(); if (num_leaks_to_report > 0 && num_leaks_to_report < unsuppressed_count) Printf("The %zu top leak(s):\n", num_leaks_to_report); - InternalSort(&leaks_, leaks_.size(), LeakComparator); + Sort(leaks_.data(), leaks_.size(), &LeakComparator); uptr leaks_reported = 0; for (uptr i = 0; i < leaks_.size(); i++) { if (leaks_[i].is_suppressed) continue; |