Skip to content

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
lanza pushed a commit that referenced this pull request Mar 18, 2025
…1095)

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.
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
…lvm#1095)

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