From bab1a14cccd4a7d7f04b28ab8e545fcdf408a18e Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 26 Jan 2023 14:46:53 -0500 Subject: [PATCH] [libc++] Add missing include promote.h in As a fly-by, also remove a superfluous include in promote.h. Differential Revision: https://reviews.llvm.org/D142657 --- libcxx/include/__type_traits/promote.h | 1 - libcxx/include/cmath | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/__type_traits/promote.h b/libcxx/include/__type_traits/promote.h index c2af327..e01e778 100644 --- a/libcxx/include/__type_traits/promote.h +++ b/libcxx/include/__type_traits/promote.h @@ -13,7 +13,6 @@ #include <__type_traits/integral_constant.h> #include <__type_traits/is_same.h> #include <__utility/declval.h> -#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header diff --git a/libcxx/include/cmath b/libcxx/include/cmath index a27d0eb..927baee 100644 --- a/libcxx/include/cmath +++ b/libcxx/include/cmath @@ -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 -- 2.7.4