[libcxx] Add missing includes
authorMichael Buch <michaelbuch12@gmail.com>
Mon, 16 Jan 2023 10:24:22 +0000 (10:24 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Mon, 16 Jan 2023 17:26:47 +0000 (17:26 +0000)
This fixes the remaining errors when building the llvm-project
with `LLVM_ENABLE_MODULES=ON` (and `LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY=ON`,
which currently is the LLVM default).

Previously this would fail in the `CXX_SUPPORTS_MODULES` check.

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

libcxx/include/__iterator/bounded_iter.h
libcxx/include/__iterator/move_iterator.h

index 69d237a..2682f2a 100644 (file)
@@ -15,6 +15,7 @@
 #include <__iterator/iterator_traits.h>
 #include <__memory/pointer_traits.h>
 #include <__type_traits/enable_if.h>
+#include <__type_traits/integral_constant.h>
 #include <__type_traits/is_convertible.h>
 #include <__utility/move.h>
 
index 2b44b27..fa806db 100644 (file)
 #include <__type_traits/enable_if.h>
 #include <__type_traits/is_assignable.h>
 #include <__type_traits/is_constructible.h>
+#include <__type_traits/is_convertible.h>
 #include <__type_traits/is_reference.h>
 #include <__type_traits/is_same.h>
+#include <__type_traits/remove_reference.h>
 #include <__utility/declval.h>
 #include <__utility/move.h>