aboutsummaryrefslogtreecommitdiff
path: root/lib/libc++/__assertion_handler
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-11-08 11:32:34 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-11-08 16:45:31 +0000
commitd686ce931cab72612a9e1ada9fe99d65e11a32a3 (patch)
treea39e5efee92224f37149c11ea680e3680457d110 /lib/libc++/__assertion_handler
parent8838f3c32ac0ebcb8b20863f8c455375039a505e (diff)
parentefdccd8358633400f927c74be0f7969bda1b3775 (diff)
Diffstat (limited to 'lib/libc++/__assertion_handler')
-rw-r--r--lib/libc++/__assertion_handler3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc++/__assertion_handler b/lib/libc++/__assertion_handler
index 3b6d6b2cca53..e12ccccdaff3 100644
--- a/lib/libc++/__assertion_handler
+++ b/lib/libc++/__assertion_handler
@@ -26,7 +26,8 @@
# if __has_builtin(__builtin_verbose_trap)
// AppleClang shipped a slightly different version of __builtin_verbose_trap from the upstream
// version before upstream Clang actually got the builtin.
-# if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 17000
+// TODO: Remove once AppleClang supports the two-arguments version of the builtin.
+# if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 1700
# define _LIBCPP_ASSERTION_HANDLER(message) __builtin_verbose_trap(message)
# else
# define _LIBCPP_ASSERTION_HANDLER(message) __builtin_verbose_trap("libc++", message)