[PATCH] D45860: [Coroutines] Catch exceptions in await_resume
Brian Gesiak via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 2 11:24:33 PDT 2018
modocache updated this revision to Diff 144908.
modocache added a comment.
Thanks for the review, @GorNishanov. Here's a more correct solution: an i1 is used to keep track of whether await_resume threw. If it did, the coroutine body is skipped, and we go straight to the final suspend point. Otherwise, the coroutine body is executed as normal.
Repository:
rC Clang
https://reviews.llvm.org/D45860
Files:
lib/CodeGen/CGCoroutine.cpp
test/CodeGenCoroutines/coro-await-resume-eh.cpp
test/CodeGenCoroutines/coro-unhandled-exception.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45860.144908.patch
Type: text/x-patch
Size: 7703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180502/aa1d9b08/attachment-0001.bin>
More information about the cfe-commits
mailing list