Skip to content
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

release/19.x: [libc++] Add missing include to three_way_comp_ref_type.h #106265

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

llvmbot
Copy link
Collaborator

@llvmbot llvmbot commented Aug 27, 2024

Backport 0df7812

Requested by: @ldionne

@llvmbot llvmbot requested a review from a team as a code owner August 27, 2024 18:31
@llvmbot llvmbot added this to the LLVM 19.X Release milestone Aug 27, 2024
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Aug 27, 2024
@llvmbot
Copy link
Collaborator Author

llvmbot commented Aug 27, 2024

@llvm/pr-subscribers-libcxx

Author: None (llvmbot)

Changes

Backport 0df7812

Requested by: @ldionne


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

1 Files Affected:

  • (modified) libcxx/include/__algorithm/three_way_comp_ref_type.h (+1)
diff --git a/libcxx/include/__algorithm/three_way_comp_ref_type.h b/libcxx/include/__algorithm/three_way_comp_ref_type.h
index 70c5818976f075..5702a1fee08262 100644
--- a/libcxx/include/__algorithm/three_way_comp_ref_type.h
+++ b/libcxx/include/__algorithm/three_way_comp_ref_type.h
@@ -9,6 +9,7 @@
 #ifndef _LIBCPP___ALGORITHM_THREE_WAY_COMP_REF_TYPE_H
 #define _LIBCPP___ALGORITHM_THREE_WAY_COMP_REF_TYPE_H
 
+#include <__assert>
 #include <__compare/ordering.h>
 #include <__config>
 #include <__utility/declval.h>

We were using a `_LIBCPP_ASSERT_FOO` macro without including `<__assert>`.

rdar://134425695
(cherry picked from commit 0df7812)
@tru tru merged commit 6883c49 into llvm:release/19.x Sep 1, 2024
9 of 10 checks passed
Copy link

github-actions bot commented Sep 1, 2024

@ldionne (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

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.
Projects
Development

Successfully merging this pull request may close these issues.

3 participants