[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)

Tex Riddell via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 16:21:42 PST 2024


================
@@ -271,53 +246,70 @@ struct BuiltinTypeDeclBuilder {
     return *this;
   }
 
+  FieldDecl *getResourceHandleField() {
+    FieldDecl *FD = Fields["h"];
----------------
tex3d wrote:

Won't this add "h" when accessed this way?
How about:
```suggestion
    FieldDecl *FD = Fields.lookup("h");
```

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


More information about the cfe-commits mailing list