[PATCH] D104082: [CodeGen] Don't create a fake FunctionDecl when generating block/block_byref copy/dispose helper functions

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 22 09:07:24 PDT 2021


aprantl accepted this revision.
aprantl added a comment.

Block copy helpers don't have any source code associated with them, so as long as they are described by a DISubprogram, the exact format of it most likely does not matter.



================
Comment at: clang/lib/CodeGen/CGBlocks.cpp:1957
                                      CGM);
   // This is necessary to avoid inheriting the previous line number.
+  StartFunction(GlobalDecl(), ReturnTy, Fn, FI, args);
----------------
This comment refers to the `FD->setImplicit();` that was removed.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104082



More information about the cfe-commits mailing list