From nobody Fri May 29 23:01:56 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gRzPx17tSz6gF1R for ; Fri, 29 May 2026 23:01:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRzPw5b1Tz3CFs for ; Fri, 29 May 2026 23:01:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780095716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oyyunVoEvbUfJHmWjaRcLhzO3Ka+ZZGWHuffpDw718s=; b=tjdfUP8bUPTc0PUk+ctN7GGPicDhprdKIsqgHNZiAcxcLov4w1LUnVwAAiZw13VzlBbOUF fUkm5Z8hPwmb2bsGcyiof1XHXuJ9caM5PaHD4fZ6kjsXWEjPQWTWi7Hwr+l4JHxUCXRbTB CA4AyykilZ2lZoa829EPOGZyunCuW7F2P3FxNPIQkS6D9reVFRRNgVEaduzYKZTi15MiCm 4b5m/HWDoi6EHER8Wxr7haxZ7yDYmUfsOQfn6bfc/k4DQAPvAGVGFJROW0xTjHUoz+X6fE r4fwJ4dhhaAnxChTgPtMG2Zr00cuklbt77bKkh3VA6auxxwMeI4KJKDUy6wSMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780095716; a=rsa-sha256; cv=none; b=aEWZafRFpTWYmkmYaXbs7T+NztgLC7lf1xT9g8SoZAVPZuUHYFLY3QfYEAN7aKf9cbgVHX Kw3CiO7+YUVje13gE1dlk2G4aNE4M/7ksns8k9GAH62AqITxYYmOkUTTh/0DR1liCWpLTt dAktde3sedteCrRW9+lHhBvljknIdAb7Ybswtb+8+KRE7TlV8h97P8zcZn2iJq+G0nwjo1 tXA8RNw3J/l6OAZCcYE7C9DMpbIwNt3HWW73u2Li6+YfaTtZTWJ81EzPfY/EQFtLqVDcBh uJojxrtYxp5+gALJqkdDpl62xfaDT8VB74Nm8S1GUrk90JmPa2L6V/s41La/6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780095716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oyyunVoEvbUfJHmWjaRcLhzO3Ka+ZZGWHuffpDw718s=; b=YbnnAH0kCvXtKJ/bSfvbLXgUdYCD8GOb14CqebS85ilJtGQrQVtcsosJqqN3v73gGO8NLt sw+p9558Pw+WEIA9TY3AgcuRS6FBQ//gx0QRTC2BORsO6aIgU1IMB3JN+R+vljLsNcRnOA bTokkNKhnRzMG8J/B/xGcdGd5UzgKVgWYFNn9y1DiIPpogHzC1LFPI/2X/WQ8W6AmPDoZm DoKa4nWFU79iTVumKnceNSWu/ZTjqnx83hAImpl1iG56H8TDEMQFdWH29bSP5WJD3rHKZv uDF33yIX8Scf9500A+LfEcyK9ocC8WAEWvLEEgKxl7vVEVrc2HTCNd4eXFS1Ug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRzPw52ycztV8 for ; Fri, 29 May 2026 23:01:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 4133d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 23:01:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Dimitry Andric From: Dimitry Andric Subject: git: ad43dd6b3ed3 - stable/15 - libcxx-compat: revert llvmorg-19-init-5639-ga10aa4485e83: List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ad43dd6b3ed34efebdbf45747a0cd61662b208d6 Auto-Submitted: auto-generated Date: Fri, 29 May 2026 23:01:56 +0000 Message-Id: <6a1a1ae4.4133d.433aab7c@gitrepo.freebsd.org> The branch stable/15 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ad43dd6b3ed34efebdbf45747a0cd61662b208d6 commit ad43dd6b3ed34efebdbf45747a0cd61662b208d6 Author: Dimitry Andric AuthorDate: 2026-01-05 19:54:32 +0000 Commit: Dimitry Andric CommitDate: 2026-05-29 22:57:32 +0000 libcxx-compat: revert llvmorg-19-init-5639-ga10aa4485e83: [libc++] Simplify the implementation of remove_reference (#85207) GCC 13 introduced the type trait `__remove_reference`. We can simplify the implementation of `remove_reference` a bit by using it. This is part of making libc++ 21 build with clang 18. PR: 292067 MFC after: 1 month (cherry picked from commit a114ece3e6158f49088b0704b4afef07040d83f3) --- .../llvm-project/libcxx/include/__type_traits/remove_reference.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/llvm-project/libcxx/include/__type_traits/remove_reference.h b/contrib/llvm-project/libcxx/include/__type_traits/remove_reference.h index 7cc3ca1705de..f7522fa1a67d 100644 --- a/contrib/llvm-project/libcxx/include/__type_traits/remove_reference.h +++ b/contrib/llvm-project/libcxx/include/__type_traits/remove_reference.h @@ -34,7 +34,14 @@ struct remove_reference { template using __libcpp_remove_reference_t = typename remove_reference<_Tp>::type; #else -# error "remove_reference not implemented!" +// clang-format off +template struct remove_reference {using type _LIBCPP_NODEBUG = _Tp;}; +template struct remove_reference<_Tp&> {using type _LIBCPP_NODEBUG = _Tp;}; +template struct remove_reference<_Tp&&> {using type _LIBCPP_NODEBUG = _Tp;}; +// clang-format on + +template +using __libcpp_remove_reference_t = typename remove_reference<_Tp>::type; #endif // __has_builtin(__remove_reference_t) #if _LIBCPP_STD_VER >= 14