| Issue |
239807
|
| Summary |
[HLSL] Compiler crashes on write to static uninitialized resource
|
| Labels |
HLSL
|
| Assignees |
|
| Reporter |
hekota
|
This HLSL code caused the compiler to crash:
```
static RWBuffer<uint> Out;
[numthreads(1,1,1)]
void main() {
Out[0] = 0;
}
```
https://godbolt.org/z/fnn9ExGKb
This is an invalid shader because the static resource is not initialized, but the compiler should not crash.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs