Skip to content

[libc++] Fix AppleClang version number when checking for __builtin_verbose_trap support #110161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented Sep 26, 2024

We should have been checking against 1700, not 17000, which was a typo.

…rbose_trap support

We should have been checking against 1700, not 17000, which was a typo.
@ldionne ldionne requested a review from a team as a code owner September 26, 2024 19:56
@ldionne ldionne added this to the LLVM 19.X Release milestone Sep 26, 2024
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Sep 26, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 26, 2024

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

Changes

We should have been checking against 1700, not 17000, which was a typo.


Full diff: https://github.com/llvm/llvm-project/pull/110161.diff

1 Files Affected:

  • (modified) libcxx/vendor/llvm/default_assertion_handler.in (+1-1)
diff --git a/libcxx/vendor/llvm/default_assertion_handler.in b/libcxx/vendor/llvm/default_assertion_handler.in
index 8f37b9089ece83..e12ccccdaff37f 100644
--- a/libcxx/vendor/llvm/default_assertion_handler.in
+++ b/libcxx/vendor/llvm/default_assertion_handler.in
@@ -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)

@ldionne ldionne merged commit 1eba879 into llvm:main Sep 27, 2024
67 checks passed
@ldionne ldionne deleted the review/apple-clang-version branch September 27, 2024 12:53
@ldionne
Copy link
Member Author

ldionne commented Sep 27, 2024

/cherry-pick 1eba879

@llvmbot
Copy link
Member

llvmbot commented Sep 27, 2024

Failed to cherry-pick: 1eba879

https://github.com/llvm/llvm-project/actions/runs/11071012302

Please manually backport the fix and push it to your github fork. Once this is done, please create a pull request

ldionne added a commit to ldionne/llvm-project that referenced this pull request Sep 27, 2024
…rbose_trap support (llvm#110161)

We should have been checking against 1700, not 17000, which was a typo.

(cherry picked from commit 1eba879)
@ldionne
Copy link
Member Author

ldionne commented Sep 27, 2024

Manual cherry-pick: #110263

Sterling-Augustine pushed a commit to Sterling-Augustine/llvm-project that referenced this pull request Sep 27, 2024
…rbose_trap support (llvm#110161)

We should have been checking against 1700, not 17000, which was a typo.
tru pushed a commit to ldionne/llvm-project that referenced this pull request Oct 1, 2024
…rbose_trap support (llvm#110161)

We should have been checking against 1700, not 17000, which was a typo.

(cherry picked from commit 1eba879)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. release:cherry-pick-failed
Projects
Development

Successfully merging this pull request may close these issues.

2 participants