git: dee76cf2f3da - main - libc++: avoid use of deprecated __reference_binds_to_temporary
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Sep 2025 22:35:24 UTC
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=dee76cf2f3dace6290ccab07c2db17355994e70f
commit dee76cf2f3dace6290ccab07c2db17355994e70f
Author: Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2025-09-15 22:11:39 +0000
Commit: Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2025-09-15 22:12:45 +0000
libc++: avoid use of deprecated __reference_binds_to_temporary
This was removed in upstream libc++ in commit
437ad06f762ab07d89badecdd20627db200b98d3, but as this does not apply
cleanly to the current repository, I am applying the equivalent change
in a minimally invasive way. This is needed to build with latest clang
HEAD as of today.
Reviewed by: dim
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D52530
---
contrib/llvm-project/libcxx/include/tuple | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/llvm-project/libcxx/include/tuple b/contrib/llvm-project/libcxx/include/tuple
index 081b90c7bbec..1d39974d5a6b 100644
--- a/contrib/llvm-project/libcxx/include/tuple
+++ b/contrib/llvm-project/libcxx/include/tuple
@@ -302,7 +302,9 @@ class __tuple_leaf {
template <class _Tp>
static _LIBCPP_HIDE_FROM_ABI constexpr bool __can_bind_reference() {
-# if __has_keyword(__reference_binds_to_temporary)
+# if __has_keyword(__reference_constructs_from_temporary)
+ return !__reference_constructs_from_temporary(_Hp, _Tp);
+# elif __has_keyword(__reference_binds_to_temporary)
return !__reference_binds_to_temporary(_Hp, _Tp);
# else
return true;