[CodeGen] Don't create fake FunctionDecls when generating block/byref
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 22 Jun 2021 18:42:26 +0000 (11:42 -0700)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 22 Jun 2021 18:42:53 +0000 (11:42 -0700)
commitf4c06bcb67a1eba13a7f164961586dddaf8ebd5f
tree94be7534d4f7ec2f8df6436a8a7f1e7c7d854c43
parentca1560da7251494ae099d8a74b38b89e605e19cb
[CodeGen] Don't create fake FunctionDecls when generating block/byref
copy/dispose helper functions

We found out that these fake functions would cause clang to crash if the
changes proposed in https://reviews.llvm.org/D98799 were made.

Differential Revision: https://reviews.llvm.org/D104082
clang/lib/CodeGen/CGBlocks.cpp
clang/test/CodeGenCXX/debug-info-blocks.cpp
clang/test/CodeGenObjC/debug-info-block-helper.m
clang/test/CodeGenObjC/debug-info-blocks.m