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

[CIR][CodeGen][NFC] Simplify replacing initializer of static decls #1095

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

seven-mile
Copy link
Collaborator

When emitting initializers for static declarations, it's essential to ensure that the cir.global operation aligns its type with that of the initializer.

The original approach creates a new global op and copies every attribute from the old one. But just setSymType should work well.

This also removes missing feature flags there.

@bcardosolopes bcardosolopes merged commit 492babc into llvm:main Nov 11, 2024
7 checks passed
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.

2 participants