[PATCH] [ms-cxxabi] Destroy temporary record arguments in the callee

Richard Smith richard at metafoo.co.uk
Mon Jun 10 10:29:54 PDT 2013


  You're likely to need a Sema change to ensure that a destructor for the parameter type is implicitly declared (if needed) in the TU containing the caller (otherwise IR generation will probably crash or assert when trying to emit a call to it).

  You'll presumably also need either a Sema change or a CodeGen change to ensure that a definition of the destructor ends up in the program -- either mark the dtor as used in the TU containing the callee (which is likely to match MSVC but is non-conforming), or demote it from linkonce_odr to weak_odr in the TU containing the call (which is conforming but may hinder inlining etc).

http://llvm-reviews.chandlerc.com/D929



More information about the cfe-commits mailing list