[clang] [HLSL] Apply resource attributes to the resource type rather than the handle member (PR #107160)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 4 12:42:37 PDT 2024


================
@@ -2062,6 +2066,7 @@ void TypePrinter::printBTFTagAttributedAfter(const BTFTagAttributedType *T,
 void TypePrinter::printHLSLAttributedResourceBefore(
     const HLSLAttributedResourceType *T, raw_ostream &OS) {
   printBefore(T->getWrappedType(), OS);
+  printAfter(T->getWrappedType(), OS);
----------------
bogner wrote:

This looks suspicious - should `printHLSLAttributedResourceBefore` really be calling `printAfter`?

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


More information about the cfe-commits mailing list