Skip to content

Commit

Permalink
[libc++] Fix AppleClang version number when checking for __builtin_ve…
Browse files Browse the repository at this point in the history
…rbose_trap support (#110161)

We should have been checking against 1700, not 17000, which was a typo.
  • Loading branch information
ldionne authored Sep 27, 2024
1 parent 4036413 commit 1eba879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcxx/vendor/llvm/default_assertion_handler.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// AppleClang shipped a slightly different version of __builtin_verbose_trap from the upstream
// version before upstream Clang actually got the builtin.
// TODO: Remove once AppleClang supports the two-arguments version of the builtin.
# if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 17000
# 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)
Expand Down

0 comments on commit 1eba879

Please sign in to comment.