[PATCH] D104883: [CodeGen] Add ParmVarDecls to FunctionDecls that are created to generate ObjC property getter/setter functions

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 24 16:58:59 PDT 2021


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

If ` args.push_back(Params[1] = SrcDecl);` doesn't trigger a warning, this seems reasonable.



================
Comment at: clang/lib/CodeGen/CGObjC.cpp:3702
+      /*DefArg=*/nullptr);
+  args.push_back(Params[0] = DstDecl);
+  ParmVarDecl *SrcDecl = ParmVarDecl::Create(
----------------
Does this compile without warnings?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104883/new/

https://reviews.llvm.org/D104883



More information about the cfe-commits mailing list