diff options
author | Louis Dionne <ldionne@apple.com> | 2020-06-09 12:31:12 -0400 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2020-06-09 13:43:13 -0400 |
commit | 1f48f8f6e289d3ae14d28ad9bd000ef5ba209fc0 (patch) | |
tree | 5b1549ceb821f0a5869a8d8eda3f1d04ce4b04ad /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 2c8afe1298e5f471a5736757b1cd2a708dd91ec9 (diff) | |
download | llvm-1f48f8f6e289d3ae14d28ad9bd000ef5ba209fc0.zip llvm-1f48f8f6e289d3ae14d28ad9bd000ef5ba209fc0.tar.gz llvm-1f48f8f6e289d3ae14d28ad9bd000ef5ba209fc0.tar.bz2 |
[libc++] Avoid UB in year_month_day_last::day() for incorrect months
This effectively implements the resolution of LWG3231, which mandates
that calling year_month_day_last::day() on an invalid year_month_day_last
is unspecified behavior. Before this change, it was undefined behavior.
Differential Revision: https://reviews.llvm.org/D81477
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions