If unhandled_exception member function is present in the coroutine promise,
wrap the body of the coroutine in:
try { body } catch(...) { promise.unhandled_exception(); }
Paths
| Differential D31692
[coroutines] Wrap the body of the coroutine in try-catch ClosedPublic Authored by GorNishanov on Apr 4 2017, 5:45 PM. Tokens "Mountain of Wealth" token, awarded by GorNishanov.
Details Summary If unhandled_exception member function is present in the coroutine promise, try { body } catch(...) { promise.unhandled_exception(); }
Diff Detail
Event Timeline
This revision is now accepted and ready to land.May 22 2017, 3:08 PM Closed by commit rL303583: [coroutines] Wrap the body of the coroutine in try-catch (authored by GorNishanov). · Explain WhyMay 22 2017, 3:33 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 99827 cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/CodeGen/CGCoroutine.cpp
cfe/trunk/lib/Sema/SemaCoroutine.cpp
cfe/trunk/test/CodeGenCoroutines/coro-cleanup.cpp
cfe/trunk/test/CodeGenCoroutines/coro-eh-cleanup.cpp
cfe/trunk/test/SemaCXX/coroutine-seh.cpp
|