[CodeGenTypes] `ConvertTypeForMem` discards attributes of matrices in an array
Open
clang:codegen
HLSL
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
https://godbolt.org/z/ob3qMMKGa
The `ConvertTypeForMem` function does not have a case for a `ConstantArrayType` to recurse into the element type.
This was noticed in the case of a matrix as this means that we don't apply the `row_major` attribute to the underlying memory if it was present.
Contributor guide
Assessment
This issue has not been assessed yet.