Skip to content

release/20.x: [libc++] Fix misplaced _LIBCPP_POP_MACROS (#134874) #134895

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
Apr 16, 2025

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Apr 8, 2025

Backport 4ab86ed

Requested by: @ldionne

@llvmbot llvmbot requested a review from a team as a code owner April 8, 2025 17:50
@llvmbot llvmbot added this to the LLVM 20.X Release milestone Apr 8, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in LLVM Release Status Apr 8, 2025
@llvmbot
Copy link
Member Author

llvmbot commented Apr 8, 2025

@mordante What do you think about merging this PR to the release branch?

@llvmbot llvmbot requested a review from mordante April 8, 2025 17:51
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Apr 8, 2025
@llvmbot
Copy link
Member Author

llvmbot commented Apr 8, 2025

@llvm/pr-subscribers-libcxx

Author: None (llvmbot)

Changes

Backport 4ab86ed

Requested by: @ldionne


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

1 Files Affected:

  • (modified) libcxx/include/istream (+2-2)
diff --git a/libcxx/include/istream b/libcxx/include/istream
index 4b177c41cc325..e28d99fd84e57 100644
--- a/libcxx/include/istream
+++ b/libcxx/include/istream
@@ -1373,6 +1373,8 @@ extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_iostream<char>;
 
 _LIBCPP_END_NAMESPACE_STD
 
+_LIBCPP_POP_MACROS
+
 #  endif // _LIBCPP_HAS_LOCALIZATION
 
 #  if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
@@ -1382,8 +1384,6 @@ _LIBCPP_END_NAMESPACE_STD
 #    include <type_traits>
 #  endif
 
-_LIBCPP_POP_MACROS
-
 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
 
 #endif // _LIBCPP_ISTREAM

Copy link
Member

@mordante mordante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-project-automation github-project-automation bot moved this from Needs Triage to Needs Merge in LLVM Release Status Apr 8, 2025
@tstellar
Copy link
Collaborator

Are these test failures relevant?

@tstellar tstellar moved this from Needs Merge to Test Failure in LLVM Release Status Apr 11, 2025
@mordante
Copy link
Member

Are these test failures relevant?

No there was an issue with the AIX-32 build bot last week.

@tstellar tstellar moved this from Needs Test Fix to Needs Merge in LLVM Release Status Apr 15, 2025
@tstellar tstellar merged commit d55c3c2 into llvm:release/20.x Apr 16, 2025
12 of 15 checks passed
@github-project-automation github-project-automation bot moved this from Needs Merge to Done in LLVM Release Status Apr 16, 2025
Copy link

@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.

5 participants