[PATCH] D31692: [coroutines] Wrap the body of the coroutine in try-catch
Gor Nishanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 4 17:45:50 PDT 2017
GorNishanov created this revision.
If unhandled_exception member function is present in the coroutine promise,
wrap the body of the coroutine in:
try {
body
} catch(...) { promise.unhandled_exception(); }
https://reviews.llvm.org/D31692
Files:
include/clang/AST/StmtCXX.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/StmtCXX.cpp
lib/CodeGen/CGCoroutine.cpp
lib/Sema/SemaCoroutine.cpp
test/CodeGenCoroutines/coro-cleanup.cpp
test/SemaCXX/coroutine-seh.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31692.94148.patch
Type: text/x-patch
Size: 9296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170405/a22dff70/attachment.bin>
More information about the cfe-commits
mailing list