diff --git a/llvm/utils/gn/secondary/libcxx/include/BUILD.gn b/llvm/utils/gn/secondary/libcxx/include/BUILD.gn index 3768bcee34528a..f75c3f0da438eb 100644 --- a/llvm/utils/gn/secondary/libcxx/include/BUILD.gn +++ b/llvm/utils/gn/secondary/libcxx/include/BUILD.gn @@ -279,7 +279,6 @@ if (current_toolchain == default_toolchain) { "__memory/auto_ptr.h", "__memory/compressed_pair.h", "__memory/construct_at.h", - "__memory/pointer_safety.h", "__memory/pointer_traits.h", "__memory/raw_storage_iterator.h", "__memory/shared_ptr.h", diff --git a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn index bbdfad63aca947..6fa9ecacd6ad17 100644 --- a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn +++ b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn @@ -132,6 +132,7 @@ cxx_sources = [ "ios.cpp", "ios.instantiations.cpp", "iostream.cpp", + "legacy_pointer_safety.cpp", "locale.cpp", "memory.cpp", "mutex.cpp",