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

Damyan Pepper via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 17:53:58 PDT 2024


================
@@ -492,14 +999,21 @@ void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) {
   // Validate.
   if (!Slot.empty()) {
     switch (Slot[0]) {
----------------
damyanp wrote:

This still seems to be essentially a duplicate of `getRegisterTypeIndex`.  You may need to modify `getRegisterTypeIndex` a bit to make it work here, but really that would be much better than duplicating the switch statement like this.

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


More information about the cfe-commits mailing list