[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 16:05:04 PST 2024
================
@@ -271,53 +246,70 @@ struct BuiltinTypeDeclBuilder {
return *this;
}
+ FieldDecl *getResourceHandleField() {
+ FieldDecl *FD = Fields["h"];
----------------
hekota wrote:
Yeah, it would probably work fine too, if default value `ValueTy()` just means `nullptr` when `ValueTy` is a pointer.
I looked at the `lookup` documentation and it says: "Return the entry for the specified key, or a default constructed value if no such entry exists."
https://github.com/llvm/llvm-project/pull/114148
More information about the cfe-commits
mailing list