================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits