Skip to content

[HLSL] Array by-value assignment #109043

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

Closed
spall opened this issue Sep 17, 2024 · 2 comments · Fixed by #109323
Closed

[HLSL] Array by-value assignment #109043

spall opened this issue Sep 17, 2024 · 2 comments · Fixed by #109323
Assignees
Labels
clang:codegen IR generation bugs: mangling, exceptions, etc. clang:frontend Language frontend issues, e.g. anything involving "Sema" HLSL HLSL Language Support

Comments

@spall
Copy link
Contributor

spall commented Sep 17, 2024

Currently arrays are not assignable.
The following code should compile successfully:

export void fn() { int Arr[2] = {1, 2}; int Arr2[2] = {0, 0}; Arr2 = Arr; }

@spall spall self-assigned this Sep 17, 2024
@EugeneZelenko EugeneZelenko added HLSL HLSL Language Support and removed new issue labels Sep 17, 2024
spall added a commit that referenced this issue Oct 1, 2024
Make Constant Arrays in HLSL assignable. 
Closes #109043
@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:codegen IR generation bugs: mangling, exceptions, etc. labels Oct 1, 2024
@llvmbot
Copy link
Member

llvmbot commented Oct 1, 2024

@llvm/issue-subscribers-clang-codegen

Author: Sarah Spall (spall)

Currently arrays are not assignable. The following code should compile successfully:

export void fn() { int Arr[2] = {1, 2}; int Arr2[2] = {0, 0}; Arr2 = Arr; }

@llvmbot
Copy link
Member

llvmbot commented Oct 1, 2024

@llvm/issue-subscribers-clang-frontend

Author: Sarah Spall (spall)

Currently arrays are not assignable. The following code should compile successfully:

export void fn() { int Arr[2] = {1, 2}; int Arr2[2] = {0, 0}; Arr2 = Arr; }

Sterling-Augustine pushed a commit to Sterling-Augustine/llvm-project that referenced this issue Oct 3, 2024
Make Constant Arrays in HLSL assignable. 
Closes llvm#109043
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:codegen IR generation bugs: mangling, exceptions, etc. clang:frontend Language frontend issues, e.g. anything involving "Sema" HLSL HLSL Language Support
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants