[libcxx-commits] [libcxx] 9f8340e - [libc++][chrono] Fixes build.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 18 11:58:45 PDT 2022


Author: Mark de Wever
Date: 2022-10-18T20:57:54+02:00
New Revision: 9f8340eff399be7c53a697ea3c0f177c162e37af

URL: https://github.com/llvm/llvm-project/commit/9f8340eff399be7c53a697ea3c0f177c162e37af
DIFF: https://github.com/llvm/llvm-project/commit/9f8340eff399be7c53a697ea3c0f177c162e37af.diff

LOG: [libc++][chrono] Fixes build.

Changes in D134742 were not properly propagated to D136037 before
landing.

Added: 
    

Modified: 
    libcxx/include/__chrono/convert_to_tm.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__chrono/convert_to_tm.h b/libcxx/include/__chrono/convert_to_tm.h
index 36801beea2f2..dea9758efb8a 100644
--- a/libcxx/include/__chrono/convert_to_tm.h
+++ b/libcxx/include/__chrono/convert_to_tm.h
@@ -53,7 +53,7 @@ _LIBCPP_HIDE_FROM_ABI _Tm __convert_to_tm(const _ChronoT& __value) {
     __result.tm_mon = static_cast<unsigned>(__value) - 1;
   else if constexpr (same_as<_ChronoT, chrono::year>)
     __result.tm_year = static_cast<int>(__value) - 1900;
-  else if constexpr (same_as<_ChronoCalendarTimePoint, chrono::weekday>)
+  else if constexpr (same_as<_ChronoT, chrono::weekday>)
     __result.tm_wday = __value.c_encoding();
   else
     static_assert(sizeof(_ChronoT) == 0, "Add the missing type specialization");


        


More information about the libcxx-commits mailing list