Skip to content

[HLSL] Allow array to be initialized from an array of the same type #127551

Closed
@llvm-beanz

Description

@llvm-beanz

HLSL allows a constant-sized array variable to be initialized from an array of the same type.

typedef int4 int8[2];

export void fn(int8 A) {
    int8 a = A;
}

CE

AC: the code above should compile and initialize the local array a by copying A.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions