Skip to content

[CIR][CodeGen] Fix the default linkage of string literals #1067

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
Nov 6, 2024

Conversation

seven-mile
Copy link
Collaborator

In OG CodeGen, string literals has private linkage as default (marked by cir_private in CIR assembly). But CIR uses internal, which is probably an ancient typo.

This PR keeps align with it and thus modifies the existing test files.

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

Nice!! Thanks

@bcardosolopes bcardosolopes merged commit 4a60357 into llvm:main Nov 6, 2024
7 checks passed
lanza pushed a commit that referenced this pull request Mar 18, 2025
In OG CodeGen, string literals has `private` linkage as default (marked
by `cir_private` in CIR assembly). But CIR uses `internal`, which is
probably an ancient typo.

This PR keeps align with it and thus modifies the existing test files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants