Skip to content

Commit 3193936

Browse files
Check clang<20 only for clang based compilers
1 parent 87d28d5 commit 3193936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public:
628628
// 2. AppleClang is not yet using clang >= 20.x, which has "fixed" this issue
629629
// 3. A few others like FreeBSD/amd64, AArch64, AIX
630630
// FIXME: when AppleClang is based off of clang >= 20.x
631-
#if _LIBCPP_CLANG_VER < 2000
631+
#if defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER < 2000
632632
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 ~__tree_node() {}
633633
#else
634634
~__tree_node() = delete;

0 commit comments

Comments
 (0)