[PATCH] D45382: [CodeGen] Avoid destructing a struct type that has already been destructed by a delegated constructor

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 6 21:17:03 PDT 2018


rjmccall added a comment.

If that's the problem, then I think the right design is for CallArg to include an optional cleanup reference for a cleanup that can be deactivated at the instant of the call (we should assert that this exists for parameters that are destroyed in the callee), and then for forwarding it's just a matter of getting that cleanup from parameter emission to forwarding-argument emission.


Repository:
  rC Clang

https://reviews.llvm.org/D45382





More information about the cfe-commits mailing list