summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCoroutines/coro-cleanup.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [coroutines] Add emission of initial and final suspendsGor Nishanov2017-05-231-5/+5
| | | | | | https://reviews.llvm.org/D31608 llvm-svn: 303603
* [coroutines] Wrap the body of the coroutine in try-catchGor Nishanov2017-05-221-18/+41
| | | | | | | | | | | | | | | | | | | | | | Summary: If unhandled_exception member function is present in the coroutine promise, wrap the body of the coroutine in: ``` try { body } catch(...) { promise.unhandled_exception(); } ``` Reviewers: EricWF, rnk, rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D31692 llvm-svn: 303583
* [coroutines] Add cleanup for compiler injected objects/allocations in ↵Gor Nishanov2017-04-011-0/+74
coroutine body Summary: * Use pushCleanup to emit freeing coroutine memory on normal and EH exits. * Surround emitted code with CodeGenFunction::RunCleanupsScope. Reviewers: rsmith, rnk, EricWF Reviewed By: rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D31460 llvm-svn: 299281
OpenPOWER on IntegriCloud