Issue |
134761
|
Summary |
[HLSL] Clang is missing a warning for implicit truncation of vector types in HLSL
|
Labels |
HLSL
|
Assignees |
|
Reporter |
bogner
|
HLSL allows implicit truncation of vector types, but DXC warns about it. Clang needs to learn this warning.
```
StructuredBuffer<int4> In : register(t0);
RWStructuredBuffer<int> Out : register(u0);
[numthreads(4,2,1)]
void main(uint GI : SV_GroupIndex) {
Out[GI] = In[GI]; // expected-warning{{implicit truncation of vector type}}
}
```
See https://hlsl.godbolt.org/z/o7j6d7r88
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs