[all-commits] [llvm/llvm-project] f6fb7b: [libc++] Add an early return for __partial_sort of...
Quuxplusone via All-commits
all-commits at lists.llvm.org
Tue Jan 4 13:15:53 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f6fb7bf636e3257a32a629460d447eea76616384
https://github.com/llvm/llvm-project/commit/f6fb7bf636e3257a32a629460d447eea76616384
Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
Date: 2022-01-04 (Tue, 04 Jan 2022)
Changed paths:
M libcxx/include/__algorithm/partial_sort.h
Log Message:
-----------
[libc++] Add an early return for __partial_sort of an empty range.
If `__first == __middle`, then `partial_sort` is a no-op; don't
bother to iterate all the way from `__middle` to `__end`.
Fixes #49431.
Differential Revision: https://reviews.llvm.org/D116296
Commit: e80ef6bd279efa10ae6dc3769787ca11d12de7a9
https://github.com/llvm/llvm-project/commit/e80ef6bd279efa10ae6dc3769787ca11d12de7a9
Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
Date: 2022-01-04 (Tue, 04 Jan 2022)
Changed paths:
M libcxx/include/__algorithm/partial_sort.h
Log Message:
-----------
[libc++] Fix whitespace in __partial_sort. NFC.
Compare: https://github.com/llvm/llvm-project/compare/e902ffe6d756...e80ef6bd279e
More information about the All-commits
mailing list