Revert "[CodeGen] Don't create fake FunctionDecls when generating block/byref"
authorZequan Wu <zequanwu@google.com>
Wed, 23 Jun 2021 04:46:21 +0000 (21:46 -0700)
committerZequan Wu <zequanwu@google.com>
Wed, 23 Jun 2021 04:48:00 +0000 (21:48 -0700)
commitf681fd927e883301658dcac9a78109ee0aba12a8
treec5d27bc861da6945886983a633473f7c9e6a63d0
parent976926e8ee3e3c9f7c391281eab89e0d1b02092a
Revert "[CodeGen] Don't create fake FunctionDecls when generating block/byref"

That commit causes crash with error "!dbg attachment points at wrong subprogram for function" on iOS platforms.

This reverts commit f4c06bcb67a1eba13a7f164961586dddaf8ebd5f.
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