[libcxx-commits] [libcxx] bab1a14 - [libc++] Add missing include promote.h in <cmath>
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 30 13:26:33 PST 2023
Author: Louis Dionne
Date: 2023-01-30T16:26:19-05:00
New Revision: bab1a14cccd4a7d7f04b28ab8e545fcdf408a18e
URL: https://github.com/llvm/llvm-project/commit/bab1a14cccd4a7d7f04b28ab8e545fcdf408a18e
DIFF: https://github.com/llvm/llvm-project/commit/bab1a14cccd4a7d7f04b28ab8e545fcdf408a18e.diff
LOG: [libc++] Add missing include promote.h in <cmath>
As a fly-by, also remove a superfluous <cstddef> include in promote.h.
Differential Revision: https://reviews.llvm.org/D142657
Added:
Modified:
libcxx/include/__type_traits/promote.h
libcxx/include/cmath
Removed:
################################################################################
diff --git a/libcxx/include/__type_traits/promote.h b/libcxx/include/__type_traits/promote.h
index c2af327c64f7b..e01e7781c5b3d 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 <cstddef>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
diff --git a/libcxx/include/cmath b/libcxx/include/cmath
index a27d0ebceb350..927baee885dd9 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 <version>
More information about the libcxx-commits
mailing list