[all-commits] [llvm/llvm-project] 484e64: [libc++] Use __is_convertible built-in when available
Roland McGrath via All-commits
all-commits at lists.llvm.org
Thu Apr 27 14:24:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 484e64f7e7b2c0494d7b2dbfdd528bcd707ee652
https://github.com/llvm/llvm-project/commit/484e64f7e7b2c0494d7b2dbfdd528bcd707ee652
Author: Roland McGrath <mcgrathr at google.com>
Date: 2023-04-27 (Thu, 27 Apr 2023)
Changed paths:
M libcxx/include/__type_traits/is_convertible.h
Log Message:
-----------
[libc++] Use __is_convertible built-in when available
https://github.com/llvm/llvm-project/issues/62396 reports that
GCC 13 barfs on parsing <type_traits> because of the declarations
of `struct __is_convertible`. In GCC 13, `__is_convertible` is a
built-in, but `__is_convertible_to` is not. Clang has both, so
using either should be fine.
Reviewed By: #libc, philnik
Differential Revision: https://reviews.llvm.org/D149313
More information about the All-commits
mailing list