[PATCH] D31460: [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body
Gor Nishanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 29 07:08:43 PDT 2017
GorNishanov created this revision.
- Use pushCleanup to emit freeing coroutine memory on normal and EH exits.
- Surround emitted code with CodeGenFunction::RunCleanupsScope.
https://reviews.llvm.org/D31460
Files:
lib/CodeGen/CGCoroutine.cpp
test/CodeGenCoroutines/coro-cleanup.cpp
test/CodeGenCoroutines/coro-return.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31460.93370.patch
Type: text/x-patch
Size: 6338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170329/9c0941cf/attachment.bin>
More information about the cfe-commits
mailing list