[libc++] Add missing include promote.h in <cmath>
authorLouis Dionne <ldionne.2@gmail.com>
Thu, 26 Jan 2023 19:46:53 +0000 (14:46 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 30 Jan 2023 21:26:19 +0000 (16:26 -0500)
As a fly-by, also remove a superfluous <cstddef> include in promote.h.

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

libcxx/include/__type_traits/promote.h
libcxx/include/cmath

index c2af327..e01e778 100644 (file)
@@ -13,7 +13,6 @@
 #include <__type_traits/integral_constant.h>
 #include <__type_traits/is_same.h>
 #include <__utility/declval.h>
-#include <cstddef>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header
index a27d0eb..927baee 100644 (file)
@@ -311,6 +311,7 @@ constexpr long double lerp(long double a, long double b, long double t) noexcept
 #include <__type_traits/is_constant_evaluated.h>
 #include <__type_traits/is_floating_point.h>
 #include <__type_traits/is_same.h>
+#include <__type_traits/promote.h>
 #include <__type_traits/remove_cv.h>
 #include <version>