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

Reply via email to