aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-11-22 16:44:50 -0500
committerLouis Dionne <ldionne.2@gmail.com>2021-12-06 13:53:25 -0500
commit2db67e97712e257d9784f4c3812432443f72145e (patch)
tree9ee85bc4971a05e7e66a73eea28c290e87f6380c /llvm/lib/CodeGen/MachineScheduler.cpp
parenta101a9b64b31ed20e4d18c2e395b0a3742ad1836 (diff)
downloadllvm-2db67e97712e257d9784f4c3812432443f72145e.zip
llvm-2db67e97712e257d9784f4c3812432443f72145e.tar.gz
llvm-2db67e97712e257d9784f4c3812432443f72145e.tar.bz2
[libc++] Fix the return value of max_size()
I assume nobody ever uses std::string_view::max_size() outside of testing. However, we should still return a value that is based on something with a reasonable rationale. Previously, we would forget to take into account the size of the character type stored in the string, and this patch takes that into account. Thanks to @mclow.lists for pointing out this issue. Differential Revision: https://reviews.llvm.org/D114395
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions