| Issue |
124791
|
| Summary |
[HLSL] Cannot export function which uses static global resource
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
spall
|
Disallowed because static is a 'temporary' local and all uses of a resource must be resolvable back to a global declaration of the resource.
'const static' is allowed because it requires the variable to be initialized to a specific resource, so it should be resolvable.
https://godbolt.org/z/PjY9aePde
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs