[all-commits] [llvm/llvm-project] cb347a: [libc++] Remove assertion in year_month_day_last::...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Jun 9 07:46:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cb347a1106a76e248a6c0d78451a018b20662c03
      https://github.com/llvm/llvm-project/commit/cb347a1106a76e248a6c0d78451a018b20662c03
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M libcxx/include/chrono
    M libcxx/test/libcxx/algorithms/debug_less.pass.cpp
    M libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp

  Log Message:
  -----------
  [libc++] Remove assertion in year_month_day_last::day()

This reverts commit 0c148430cf61, which added an assertion in day().
The Standard doesn't allow day() to crash -- instead it says that the
result is unspecified.

Differential Revision: https://reviews.llvm.org/D70346




More information about the All-commits mailing list