Skip to content

[HLSL] Cbuffer declaration with array typedef crashes #134668

Closed
@spall

Description

@spall

This code should compile, and if you use 'uint32_t4' directly in the cbuffer instead of the typedef it does.
https://godbolt.org/z/4nx4zsMdf

The type needs to be desugared before being cast to a ConstantArrayType.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions