[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

Damyan Pepper via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 9 16:59:39 PDT 2024


================
@@ -635,46 +626,52 @@ RegisterBindingFlags HLSLFillRegisterBindingFlags(Sema &S, Decl *D) {
       } else
         r.Other = true;
     }
-  } else {
-    llvm_unreachable("unknown decl type");
   }
   return r;
 }
 
+int getRegisterTypeIndex(StringRef Slot) {
+  switch (Slot[0]) {
+  case 't':
----------------
damyanp wrote:

Good news!  It looks like DXC is case insensitive for register types: https://godbolt.org/z/e9Y71o9ch

https://github.com/llvm/llvm-project/pull/97103


More information about the cfe-commits mailing list