[PATCH] D49303: [CodeGen][ObjC] Treat non-escaping blocks as global blocks to make copy/dispose a no-op

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 17 16:38:01 PDT 2018


rjmccall added a comment.

Please test that we still copy captures correctly into the block object and destroy them when the block object is destroyed.

For the sorts of ephemeral blocks that we currently mark non-escaping, we can think about optimizing that away, too, but for now please test that we still perform captures normally.


Repository:
  rC Clang

https://reviews.llvm.org/D49303





More information about the cfe-commits mailing list