[PATCH] D66094: [CodeGen] Emit destructor calls for non-trivial C structs returned by function calls and loaded from volatile objects
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 12 10:15:54 PDT 2019
ahatanak created this revision.
ahatanak added a reviewer: rjmccall.
ahatanak added a project: clang.
Herald added subscribers: llvm-commits, dexonsmith, jkorous.
Herald added a project: LLVM.
This is the patch I split out of https://reviews.llvm.org/D64464.
The cleanup is pushed in `EmitCallExpr` and `EmitObjCMessageExpr` so that the destructor is called to destruct function call and ObjC message returns. I also added test cases for block function calls since the patch in https://reviews.llvm.org/D64464 wasn't handling that case correctly.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16535 bytes
Desc: not available
More information about the cfe-commits