[all-commits] [llvm/llvm-project] d529e8: [libc++] Fix compilation error on platforms that d...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Sep 8 15:11:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d529e8110bdf49ca0f00fe4bfbae7db64a49f70c
      https://github.com/llvm/llvm-project/commit/d529e8110bdf49ca0f00fe4bfbae7db64a49f70c
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2022-09-08 (Thu, 08 Sep 2022)

  Changed paths:
    M libcxx/include/__chrono/convert_to_tm.h
    M libcxx/include/__chrono/formatter.h
    M libcxx/test/std/time/time.cal/time.cal.day/time.cal.day.nonmembers/ostream.pass.cpp
    M libcxx/test/std/time/time.syn/formatter.day.pass.cpp

  Log Message:
  -----------
  [libc++] Fix compilation error on platforms that don't implement std::tm

Instead of mentioning tm directly in the definition of __convert_to_tm,
take it as a template argument. As a fly-by also fix incorrect Lit feature
(should have been no-localization instead of libcpp-has-no-localization).

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




More information about the All-commits mailing list