diff options
author | Joe Loser <joeloser93@gmail.com> | 2021-11-24 15:35:15 -0500 |
---|---|---|
committer | Joe Loser <joeloser93@gmail.com> | 2021-11-25 11:39:59 -0500 |
commit | 68e7e76a9be022427e572101cde4e00203c9af46 (patch) | |
tree | 8075fd4ed762a618fb1ceff1aca216984ab75ee7 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | 976bb4724c04ef7570d49a0639bba270128bd72c (diff) | |
download | llvm-68e7e76a9be022427e572101cde4e00203c9af46.zip llvm-68e7e76a9be022427e572101cde4e00203c9af46.tar.gz llvm-68e7e76a9be022427e572101cde4e00203c9af46.tar.bz2 |
[libc++] Fix constraints for string_view's iterator/sentinel constructor
The `string_view` constructor taking an iterator/sentinel uses concepts
instead of type traits like the Standard states. Using `same_as` instead
of `is_same_v` should be harmless. Prefer `std::is_same_v` instead which is
cheaper to compile. Replace `convertible_to` with `is_convertible_v` as
well.
This observation came up while working on
https://reviews.llvm.org/D113161
Differential Revision: https://reviews.llvm.org/D114561
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
0 files changed, 0 insertions, 0 deletions