[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 23 22:33:32 PDT 2018


ahatanak added a comment.

Note that in order to destruct C++ objects, I'm using pushDestroy which pushes a NormalCleanup when exception handling isn't enabled. This is different from PushDestructorCleanup which always pushes a NormalAndEHCleanup, but I think using pushDestroy is more correct since I don't think we need to do a cleanup on the EH path when exception isn't enabled.


Repository:
  rC Clang

https://reviews.llvm.org/D49718





More information about the cfe-commits mailing list