Skip to content

Commit a8de754

Browse files
committed
Minor tweaks
1 parent c57704c commit a8de754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,15 +1217,15 @@ typedef __char32_t char32_t;
12171217

12181218
// TODO(LLVM 22): Remove this macro once LLVM19 support ends.
12191219
# if __has_builtin(__reference_constructs_from_temporary) || \
1220-
(defined(_LIBCPP_COMPILER_CLANG_BASED) && (__clang_major__ >= 19) && (__clang_minor__ >= 1))
1220+
(defined(_LIBCPP_CLANG_VER) && (_LIBCPP_CLANG_VER == 1901))
12211221
# define _LIBCPP_HAS_REFERENCE_CONSTRUCTS_FROM_TEMPORARY 1
12221222
# else
12231223
# define _LIBCPP_HAS_REFERENCE_CONSTRUCTS_FROM_TEMPORARY 0
12241224
# endif
12251225

12261226
// TODO(LLVM 22): Remove this macro once LLVM19 support ends.
12271227
# if __has_builtin(__reference_converts_from_temporary) || \
1228-
(defined(_LIBCPP_COMPILER_CLANG_BASED) && (__clang_major__ >= 19) && (__clang_minor__ >= 1))
1228+
(defined(_LIBCPP_CLANG_VER) && (_LIBCPP_CLANG_VER == 1901))
12291229
# define _LIBCPP_HAS_REFERENCE_CONVERTS_FROM_TEMPORARY 1
12301230
# else
12311231
# define _LIBCPP_HAS_REFERENCE_CONVERTS_FROM_TEMPORARY 0

0 commit comments

Comments
 (0)