[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 8 18:18:29 PDT 2024
================
@@ -470,13 +892,15 @@ void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) {
// Validate.
if (!Slot.empty()) {
switch (Slot[0]) {
+ case 't':
case 'u':
case 'b':
case 's':
- case 't':
+ case 'c':
+ case 'i':
break;
default:
- Diag(ArgLoc, diag::err_hlsl_unsupported_register_type)
+ Diag(ArgLoc, diag::err_hlsl_unsupported_register_type_and_resource_type)
----------------
damyanp wrote:
Is there a test for this?
https://github.com/llvm/llvm-project/pull/97103
More information about the cfe-commits
mailing list