diff options
author | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2021-08-19 15:06:21 -0400 |
---|---|---|
committer | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2021-08-22 11:43:12 -0400 |
commit | ca7926bd79426fbd8b752d6513c77951db35109f (patch) | |
tree | 458a0491e96953cf010d6334d3b077d7388e6a89 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | fafe5a6f44c6eebb723844bc04275d23b520400c (diff) | |
download | llvm-ca7926bd79426fbd8b752d6513c77951db35109f.zip llvm-ca7926bd79426fbd8b752d6513c77951db35109f.tar.gz llvm-ca7926bd79426fbd8b752d6513c77951db35109f.tar.bz2 |
[libc++] Eliminate needless `add_lvalue_reference` from <algorithm> helpers. NFCI.
When `_Compare` is a function parameter already (so it's not `void`
and it's not an abominable function type), `add_lvalue_reference_t<_Compare>`
is simply a synonym for `_Compare&`. We don't need to pull in `<type_traits>`
and instantiate a template trait to figure that out.
Differential Revision: https://reviews.llvm.org/D108400
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions