Skip to content

Commit 398f134

Browse files
ldionneSterling-Augustine
authored andcommitted
[libc++] Fix AppleClang version number when checking for __builtin_verbose_trap support (llvm#110161)
We should have been checking against 1700, not 17000, which was a typo.
1 parent 920b0d3 commit 398f134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/vendor/llvm/default_assertion_handler.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// AppleClang shipped a slightly different version of __builtin_verbose_trap from the upstream
2828
// version before upstream Clang actually got the builtin.
2929
// TODO: Remove once AppleClang supports the two-arguments version of the builtin.
30-
# if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 17000
30+
# if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 1700
3131
# define _LIBCPP_ASSERTION_HANDLER(message) __builtin_verbose_trap(message)
3232
# else
3333
# define _LIBCPP_ASSERTION_HANDLER(message) __builtin_verbose_trap("libc++", message)

0 commit comments

Comments
 (0)