Skip to content

[libc++] Mark static variables of locale::id as constinit #65783

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 11, 2023

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented Sep 8, 2023

The dylib contains multiple global variables of type locale::id. Those can be marked as constinit to make it clear that static initialization is performed.

The dylib contains multiple global variables of type locale::id. Those
can be marked as constinit to make it clear that static initialization
is performed.
@ldionne ldionne added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Sep 8, 2023
@ldionne ldionne requested a review from a team as a code owner September 8, 2023 17:55
@ldionne ldionne merged commit f3c2a3d into llvm:main Sep 11, 2023
@ldionne ldionne deleted the review/locale-id-constinit branch September 11, 2023 18:22
ZijunZhaoCCK pushed a commit to ZijunZhaoCCK/llvm-project that referenced this pull request Sep 19, 2023
The dylib contains multiple global variables of type locale::id. Those
can be marked as constinit to make it clear that static initialization
is performed.
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants