diff options
author | Ian Anderson <iana@apple.com> | 2023-06-05 15:08:54 -0700 |
---|---|---|
committer | Ian Anderson <iana@apple.com> | 2023-06-24 10:54:53 -0700 |
commit | 2af6d79c7e38675a184280a2d6a92550702581f7 (patch) | |
tree | c27752afbae3ee259f2262af5b03e5fc93d14977 /llvm/tools/llvm-tapi-diff/DiffEngine.cpp | |
parent | e28b3ea52aa68114ad9862ba2609042556d713ae (diff) | |
download | llvm-2af6d79c7e38675a184280a2d6a92550702581f7.zip llvm-2af6d79c7e38675a184280a2d6a92550702581f7.tar.gz llvm-2af6d79c7e38675a184280a2d6a92550702581f7.tar.bz2 |
[libc++] Remove the type_traits includes from limits and new
type_traits is currently unable to include __type_traits/noexcept_move_assign_container.h, because it would cause several include cycles.
type_traits -> __type_traits/noexcept_move_assign_container.h -> __memory/allocator_traits.h -> __memory/construct_at.h -> new -> exception -> type_traits
type_traits -> __type_traits/noexcept_move_assign_container.h -> __memory/allocator_traits.h -> __memory/construct_at.h -> new -> type_traits
type_traits -> __type_traits/noexcept_move_assign_container.h -> __memory/allocator_traits.h -> limits -> type_traits
This is a problem for clang modules after the std mega module is broken up (D144322), because it becomes a module cycle which is a hard error.
Unconditionally remove the type_traits includes from limits and new in all versions, and also remove the exception include from new. (These are already removed in C++23.)
Reviewed By: ldionne, Mordante, #libc
Differential Revision: https://reviews.llvm.org/D153214
Diffstat (limited to 'llvm/tools/llvm-tapi-diff/DiffEngine.cpp')
0 files changed, 0 insertions, 0 deletions