Skip to content

[SPIRV] Add warning for initialized globals#7448

Merged
s-perron merged 2 commits intomicrosoft:mainfrom
s-perron:i3950
May 15, 2025
Merged

[SPIRV] Add warning for initialized globals#7448
s-perron merged 2 commits intomicrosoft:mainfrom
s-perron:i3950

Conversation

@s-perron
Copy link
Copy Markdown
Collaborator

To be consistent with DXIL, we will start emitting a warning for
extenally visible variables that have an initializer. Until now, there
were silently ignored.

Fixes #3950

To be consistent with DXIL, we will start emitting a warning for
extenally visible variables that have an initializer. Until now, there
were silently ignored.

Fixes microsoft#3950
Comment thread tools/clang/lib/SPIRV/SpirvEmitter.cpp Outdated
@s-perron s-perron enabled auto-merge (squash) May 15, 2025 18:41
@s-perron s-perron merged commit 2421964 into microsoft:main May 15, 2025
12 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap May 15, 2025
@s-perron s-perron deleted the i3950 branch May 28, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] assigning default value to an external global silently fails without warning

3 participants