aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJoshua Batista <jbatista@microsoft.com>2024-09-17 14:57:41 -0700
committerGitHub <noreply@github.com>2024-09-17 14:57:41 -0700
commit905de9b0fe06d960e7f60175e6c96b955f334a66 (patch)
tree46d81adf7aa2b36aa992c20b1b7f235358c633d9 /clang/lib/CodeGen/CodeGenModule.cpp
parent0ea40bf02138c02e7680ce6fa8169502f2a8bd42 (diff)
downloadllvm-905de9b0fe06d960e7f60175e6c96b955f334a66.zip
llvm-905de9b0fe06d960e7f60175e6c96b955f334a66.tar.gz
llvm-905de9b0fe06d960e7f60175e6c96b955f334a66.tar.bz2
[HLSL] Add testing for space parameter on global constants (#106782)
The space parameter in the register binding annotation may not be used for global constants. There was previously no diagnostic emitted when this case occurred. This PR adds a diagnostic when this case occurs, and tests these cases. A new file was made to specifically test the space parameter, so some cases in `\clang\test\SemaHLSL\resource_binding_attr_error.hlsl` were moved over to this new file. Fixes #104521
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions