diff options
author | Marek Kurdej <marek@quasardb.net> | 2020-05-21 21:48:51 +0200 |
---|---|---|
committer | Marek Kurdej <marek@quasardb.net> | 2020-05-21 21:55:38 +0200 |
commit | 0c148430cf612762ca243aafe23b3fb9670d2797 (patch) | |
tree | 0ab6c030188852c155ba2245d5bf61edb5a4d2c0 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 1108f5c737dbdab0277874a7e5b237491839c43a (diff) | |
download | llvm-0c148430cf612762ca243aafe23b3fb9670d2797.zip llvm-0c148430cf612762ca243aafe23b3fb9670d2797.tar.gz llvm-0c148430cf612762ca243aafe23b3fb9670d2797.tar.bz2 |
Reland [libc++] [LWG3321] Mark "year_month_day_last::day() specification does not cover !ok() values" issue as "Nothing to do", but add assertion.
Summary:
This LWG issue states that the result of `year_month_day_last::day()` is implementation defined if `ok()` is `false`.
However, from user perspective, calling `day()` in this situation will lead to a (possibly difficult to find) crash.
Hence, I have added an assertion to warn user at least when assertions are enabled.
Reviewed By: ldionne, #libc
Differential Revision: https://reviews.llvm.org/D70346
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions